X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=engine%2Fcompbio%2Fengine%2Flocal%2FExecutableWrapper.java;h=9e652f935c023863aa8b0737be200eb6174d1d77;hb=a9d68d14dd391010e0a9e3b02a590f36db8e2e47;hp=597af4e38f578b1e8776849d85f53c0b6ee07556;hpb=b4563866bd1a84e8e79790ce533f2a84bc5d188e;p=jabaws.git diff --git a/engine/compbio/engine/local/ExecutableWrapper.java b/engine/compbio/engine/local/ExecutableWrapper.java index 597af4e..9e652f9 100644 --- a/engine/compbio/engine/local/ExecutableWrapper.java +++ b/engine/compbio/engine/local/ExecutableWrapper.java @@ -75,17 +75,14 @@ public final class ExecutableWrapper implements pbuilder = new ProcessBuilder(params); if (executable.getEnvironment() != null) { - log.debug("Setting command environment variables: " - + pbuilder.environment()); - Util.mergeEnvVariables(pbuilder.environment(), executable - .getEnvironment()); + log.debug("Setting command environment variables: " + pbuilder.environment()); + Util.mergeEnvVariables(pbuilder.environment(), executable.getEnvironment()); log.debug("Process environment:" + pbuilder.environment()); } log.debug("Setting command: " + pbuilder.command()); PathValidator.validateDirectory(workDirectory); pbuilder.directory(new File(workDirectory)); - log.debug("Current working directory is " - + SysPrefs.getCurrentDirectory()); + log.debug("Current working directory is " + SysPrefs.getCurrentDirectory()); log.debug("Setting working directory: " + workDirectory); // Initialize private executor to dump processes output if any to the // file system @@ -98,8 +95,7 @@ public final class ExecutableWrapper implements // get access to the thread efficiently deadlocking the // proccess! this.es = Executors.newCachedThreadPool(); - log - .debug("Initializing executor for local processes output dump"); + log.debug("Initializing executor for local processes output dump"); // Make sure that the executors are going to be properly closed Runtime.getRuntime().addShutdownHook(new Thread() { @Override @@ -119,7 +115,7 @@ public final class ExecutableWrapper implements */ public static final void shutdownService() { if (es != null) { - es.shutdownNow(); + es.shutdownNow(); } }