From 3b747418b7f53c1c4a4b1bfb201e70bf6a2b4766 Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Fri, 14 Jul 2000 14:35:44 +0000 Subject: [PATCH] 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 git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267786 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/Javac.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/Javac.java b/src/main/org/apache/tools/ant/taskdefs/Javac.java index f9bfec796..76d323013 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Javac.java +++ b/src/main/org/apache/tools/ant/taskdefs/Javac.java @@ -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.