Browse Source

Propagate Sam's build.sysclasspath magic to <rmic> as well.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268424 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 24 years ago
parent
commit
320a0390be
2 changed files with 7 additions and 8 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/Javac.java
  2. +6
    -7
      src/main/org/apache/tools/ant/taskdefs/Rmic.java

+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/Javac.java View File

@@ -414,7 +414,7 @@ public class Javac extends MatchingTask {
classpath.setLocation(destDir);
}

// Compine the build classpath with the system classpath, in an
// Combine the build classpath with the system classpath, in an
// order determined by the value of build.classpath

if (compileClasspath == null) {


+ 6
- 7
src/main/org/apache/tools/ant/taskdefs/Rmic.java View File

@@ -357,15 +357,14 @@ public class Rmic extends MatchingTask {
// untouched classes are on classpath
Path classpath = new Path(project, baseFile.getAbsolutePath());

// add our classpath to the mix

if (compileClasspath != null) {
classpath.addExisting(compileClasspath);
// Combine the build classpath with the system classpath, in an
// order determined by the value of build.classpath
if (compileClasspath == null) {
classpath.addExisting(Path.systemClasspath);
} else {
classpath.addExisting(compileClasspath.concatSystemClasspath());
}

// add the system classpath
classpath.addExisting(Path.systemClasspath);

// in jdk 1.2, the system classes are not on the visible classpath.
if (Project.getJavaVersion().startsWith("1.2")) {
String bootcp = System.getProperty("sun.boot.class.path");


Loading…
Cancel
Save