From 52159303cee4ea21cd77f26d5cff741e8bcd386f Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Fri, 10 Dec 2004 17:29:04 +0000 Subject: [PATCH] Try to help the Gump/Kaffe/Jikes build git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277167 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tools/ant/taskdefs/compilers/Jikes.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/org/apache/tools/ant/taskdefs/compilers/Jikes.java b/src/main/org/apache/tools/ant/taskdefs/compilers/Jikes.java index 571baa393..673eeedca 100644 --- a/src/main/org/apache/tools/ant/taskdefs/compilers/Jikes.java +++ b/src/main/org/apache/tools/ant/taskdefs/compilers/Jikes.java @@ -203,6 +203,15 @@ public class Jikes extends DefaultCompilerAdapter { int firstFileName = cmd.size(); logAndAddFilesToCompile(cmd); + // this is a quick hack to make things work in a + // Gump/Kaffe/Jikes combo. I promise I'll explain it later - + // and add a real solution as well ;-) Stefan + if ("true".equals(System.getProperty("build.clonevm")) + && Path.systemBootClasspath.size() > 0) { + cmd.createArgument().setValue("-bootclasspath"); + cmd.createArgument().setPath(Path.systemBootClasspath); + } + return executeExternalCompile(cmd.getCommandline(), firstFileName) == 0; }