An attempt to automatically make binaries executables - not successful but the code...
authorpvtroshin <pvtroshin@e3abac25-378b-4346-85de-24260fe3988d>
Thu, 25 Aug 2011 15:46:49 +0000 (15:46 +0000)
committerpvtroshin <pvtroshin@e3abac25-378b-4346-85de-24260fe3988d>
Thu, 25 Aug 2011 15:46:49 +0000 (15:46 +0000)
git-svn-id: link to svn.lifesci.dundee.ac.uk/svn/barton/ptroshin/JABA2@4548 e3abac25-378b-4346-85de-24260fe3988d

engine/compbio/engine/client/Util.java

index aff3ca5..5eda4b6 100644 (file)
@@ -253,6 +253,16 @@ public final class Util {
                } else {\r
                        bin = ph.getProperty("cluster." + execCommandName + ".bin");\r
                }\r
+               // Could have done: Set executable flag if not set\r
+               // but - do not because in some cases more than one file must be made\r
+               // executable!\r
+               /*\r
+                * if (!compbio.util.Util.isEmpty(bin)) { File command = new File(bin);\r
+                * if (!command.canExecute()) { log.debug(\r
+                * "The command line binary is not executable! (just unpacked from war file? )"\r
+                * ); log.debug("Attempting to set executable flag for command: " +\r
+                * bin); command.setExecutable(true, false); } }\r
+                */\r
                log.debug("Using executable: " + bin);\r
                return bin; // File.separator\r
        }\r