From: pvtroshin Date: Thu, 25 Aug 2011 15:46:49 +0000 (+0000) Subject: An attempt to automatically make binaries executables - not successful but the code... X-Git-Url: http://source.jalview.org/gitweb/?p=jabaws.git;a=commitdiff_plain;h=0fe28c8386f1c1d7c7cd09c927693c465f5f1ab2 An attempt to automatically make binaries executables - not successful but the code is commented out and let in for future use git-svn-id: link to svn.lifesci.dundee.ac.uk/svn/barton/ptroshin/JABA2@4548 e3abac25-378b-4346-85de-24260fe3988d --- diff --git a/engine/compbio/engine/client/Util.java b/engine/compbio/engine/client/Util.java index aff3ca5..5eda4b6 100644 --- a/engine/compbio/engine/client/Util.java +++ b/engine/compbio/engine/client/Util.java @@ -253,6 +253,16 @@ public final class Util { } else { bin = ph.getProperty("cluster." + execCommandName + ".bin"); } + // Could have done: Set executable flag if not set + // but - do not because in some cases more than one file must be made + // executable! + /* + * if (!compbio.util.Util.isEmpty(bin)) { File command = new File(bin); + * if (!command.canExecute()) { log.debug( + * "The command line binary is not executable! (just unpacked from war file? )" + * ); log.debug("Attempting to set executable flag for command: " + + * bin); command.setExecutable(true, false); } } + */ log.debug("Using executable: " + bin); return bin; // File.separator }