aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorwisberg <wisberg>2005-01-27 06:07:19 +0000
committerwisberg <wisberg>2005-01-27 06:07:19 +0000
commit36a383386620f897ea2d5a69fe7bb37e1c1183a7 (patch)
tree1572d35620edded214a158c68ea260f037c267ee /testing
parent5f290ea3ddb9f8e4df2fbbcc4a3314d48f6b10c8 (diff)
downloadaspectj-36a383386620f897ea2d5a69fe7bb37e1c1183a7.tar.gz
aspectj-36a383386620f897ea2d5a69fe7bb37e1c1183a7.zip
preliminary fork support
Diffstat (limited to 'testing')
-rw-r--r--testing/src/org/aspectj/testing/harness/bridge/JavaRun.java13
1 files changed, 12 insertions, 1 deletions
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);
+ }
}
/**