From 36a383386620f897ea2d5a69fe7bb37e1c1183a7 Mon Sep 17 00:00:00 2001 From: wisberg Date: Thu, 27 Jan 2005 06:07:19 +0000 Subject: [PATCH] preliminary fork support --- .../org/aspectj/testing/harness/bridge/JavaRun.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/testing/src/org/aspectj/testing/harness/bridge/JavaRun.java b/testing/src/org/aspectj/testing/harness/bridge/JavaRun.java index d7a5410a9..916b69bc2 100644 --- a/testing/src/org/aspectj/testing/harness/bridge/JavaRun.java +++ b/testing/src/org/aspectj/testing/harness/bridge/JavaRun.java @@ -418,7 +418,7 @@ public class JavaRun implements IAjcRun { public static String VM_ARGS_KEY = "javarun.vmargs"; public static String JAVA_HOME_KEY = "javarun.java.home"; public static String BOOTCLASSPATH_KEY = "javarun.bootclasspath"; - private static final ForkSpec FORK; + static final ForkSpec FORK; static { ForkSpec fork = new ForkSpec(); fork.fork = Boolean.getBoolean(FORK_KEY); @@ -457,6 +457,7 @@ public class JavaRun implements IAjcRun { private ForkSpec() { copy(FORK); } + private void copy(ForkSpec forkSpec) { if (null != forkSpec) { fork = forkSpec.fork; @@ -466,6 +467,16 @@ public class JavaRun implements IAjcRun { vmargs = forkSpec.vmargs; } } + + /** + * @return "" or bootclasspath with File.pathSeparator internal delimiters + */ + String getBootclasspath() { + if (LangUtil.isEmpty(bootclasspath)) { + return ""; + } + return FileUtil.flatten(bootclasspath, null); + } } /** -- 2.39.5