Browse Source

Update Jikes support for bootclasspath

Allow the bootclasspath attribute to be used for a Jikes compile.
it is currently ignored if build.compiler == jikes.

Submitted by:	Phil Hanna <author@philhanna.com>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267786 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 25 years ago
parent
commit
3b747418b7
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      src/main/org/apache/tools/ant/taskdefs/Javac.java

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

@@ -642,7 +642,15 @@ public class Javac extends MatchingTask {
private void doJikesCompile() throws BuildException {
log("Using jikes compiler", Project.MSG_VERBOSE);

Path classpath = new Path(getCompileClasspath(true));
Path classpath = new Path();

// Jikes doesn't support bootclasspath dir (-bootclasspath)
// so we'll emulate it for compatibility and convenience.
if (bootclasspath != null) {
classpath.append(bootclasspath);
}

classpath.append(new Path(getCompileClasspath(true)));

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


Loading…
Cancel
Save