run-script-maven-plugin/src/main/java/org/lcsim
diff -u -r1.2 -r1.3
--- RunScriptMavenPluginMojo.java 4 Sep 2008 23:16:38 -0000 1.2
+++ RunScriptMavenPluginMojo.java 4 Sep 2008 23:19:43 -0000 1.3
@@ -81,7 +81,15 @@
// Set Unix permissions.
String os = System.getProperties().getProperty("os.name");
if (os.contains("Linux") || os.contains("Mac OS X"))
- Runtime.getRuntime().exec("chmod 755 " + scriptFile.getCanonicalPath());
+ {
+ try {
+ Runtime.getRuntime().exec("chmod 755 " + scriptFile.getCanonicalPath());
+ }
+ catch (IOException x)
+ {
+ throw new RuntimeException(x);
+ }
+ }
// TODO: Need to set permissions for Windows or defaults are okay?
}