From: Jim Procter Date: Wed, 5 Sep 2018 17:12:14 +0000 (+0100) Subject: JAL-3065 don’t quote class path args for Runtime.exec java launch command (needs... X-Git-Tag: Release_2_10_5~12 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=f0036da9309c59dd0bfd09a268133d1bf6541136;p=jalview.git JAL-3065 don’t quote class path args for Runtime.exec java launch command (needs to be ported to 2.11) --- diff --git a/test/jalview/bin/CommandLineOperations.java b/test/jalview/bin/CommandLineOperations.java index 9b94be9..d586dae 100644 --- a/test/jalview/bin/CommandLineOperations.java +++ b/test/jalview/bin/CommandLineOperations.java @@ -121,10 +121,12 @@ public class CommandLineOperations { cp_sep = ";"; } + // Note: JAL-3065 - don't include quotes for lib/* because the arguments are + // not expanded by the shell String _cmd = "java " + (withAwt ? "-Djava.awt.headless=true" : "") - + " -classpath \"./lib/*" + cp_sep - + "./classes\" jalview.bin.Jalview "; + + " -classpath ./classes" + cp_sep + + "./lib/* jalview.bin.Jalview "; System.out.println("CMD [" + cmd + "]"); Process ls2_proc = null; Worker worker = null;