conor 00/07/14 07:35:44
Modified: src/main/org/apache/tools/ant/taskdefs Javac.java
Log:
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 <[EMAIL PROTECTED]>
Revision Changes Path
1.23 +9 -1
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Javac.java
Index: Javac.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Javac.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- Javac.java 2000/07/14 11:49:57 1.22
+++ Javac.java 2000/07/14 14:35:44 1.23
@@ -642,7 +642,15 @@
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.