Browse Source

Put the PATH obtained from extdirs between bootclasspath and

userclasspath when using jikes or jvc to make them match javac's
behavior.
Submitted by:	 Robert Krueger <krueger@signal7.de>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268008 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 25 years ago
parent
commit
98d5287971
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/main/org/apache/tools/ant/taskdefs/Javac.java

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

@@ -571,12 +571,12 @@ public class Javac extends MatchingTask {
classpath.append(bootclasspath);
}

classpath.append(getCompileClasspath(true));

// Jikes doesn't support an extension dir (-extdir)
// so we'll emulate it for compatibility and convenience.
addExtdirsToClasspath(classpath);

classpath.append(getCompileClasspath(true));

// Jikes has no option for source-path so we
// will add it to classpath.
classpath.append(src);
@@ -765,12 +765,12 @@ public class Javac extends MatchingTask {
classpath.append(bootclasspath);
}

classpath.append(getCompileClasspath(true));

// jvc doesn't support an extension dir (-extdir)
// so we'll emulate it for compatibility and convenience.
addExtdirsToClasspath(classpath);

classpath.append(getCompileClasspath(true));

// jvc has no option for source-path so we
// will add it to classpath.
classpath.append(src);


Loading…
Cancel
Save