Browse Source

Give build.sysclasspath a chance to influence a forked VM's bootclasspath even if the user didn't supply one herself

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1061156 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 14 years ago
parent
commit
c737f55aab
1 changed files with 7 additions and 6 deletions
  1. +7
    -6
      src/main/org/apache/tools/ant/types/CommandlineJava.java

+ 7
- 6
src/main/org/apache/tools/ant/types/CommandlineJava.java View File

@@ -678,13 +678,14 @@ public class CommandlineJava implements Cloneable {
+ "the target VM doesn't support it.");
}
} else {
if (bootclasspath != null) {
return bootclasspath.concatSystemBootClasspath(isCloneVm()
? "last"
: "ignore");
} else if (isCloneVm()) {
return Path.systemBootClasspath;
Path b = bootclasspath;
if (b == null) {
b = new Path(null);
}
// even with no user-supplied bootclasspath
// build.sysclasspath could be set to something other than
// "ignore" and thus create one
return b.concatSystemBootClasspath(isCloneVm() ? "last" : "ignore");
}
return new Path(null);
}


Loading…
Cancel
Save