From f0036da9309c59dd0bfd09a268133d1bf6541136 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Wed, 5 Sep 2018 18:12:14 +0100 Subject: [PATCH] =?utf8?q?JAL-3065=20don=E2=80=99t=20quote=20class=20path=20?= =?utf8?q?args=20for=20Runtime.exec=20java=20launch=20command=20(needs=20to=20?= =?utf8?q?be=20ported=20to=202.11)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- test/jalview/bin/CommandLineOperations.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 1.7.10.2