From 0fe28c8386f1c1d7c7cd09c927693c465f5f1ab2 Mon Sep 17 00:00:00 2001 From: pvtroshin Date: Thu, 25 Aug 2011 15:46:49 +0000 Subject: [PATCH] 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 --- engine/compbio/engine/client/Util.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 } -- 1.7.10.2