]> source.dussan.org Git - aspectj.git/commitdiff
preliminary fork support
authorwisberg <wisberg>
Thu, 27 Jan 2005 06:07:19 +0000 (06:07 +0000)
committerwisberg <wisberg>
Thu, 27 Jan 2005 06:07:19 +0000 (06:07 +0000)
testing/src/org/aspectj/testing/harness/bridge/JavaRun.java

index d7a5410a9ef35633a84b41755324d70abb30a56f..916b69bc25bc0ca40dd88ef899c4e7b577c565d8 100644 (file)
@@ -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);
+        }
     }
     
     /**