From 7bb0f18d6d15c21ea256733209b830fb00dfea1a Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Wed, 23 Jun 2004 13:32:57 +0000 Subject: [PATCH] Add libgcj support to Path.addJavaRuntime PR: 29020 Submitted by: Anthony Green git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276615 13f79535-47bb-0310-9956-ffa450edef68 --- CONTRIBUTORS | 1 + src/main/org/apache/tools/ant/types/Path.java | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index e1723fd9d..dd5f77880 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -5,6 +5,7 @@ Andreas Ames Andrew Everitt Anil K. Vijendran Anli Shundi +Anthony Green Antoine Levy-Lambert Anton Mazkovoi Arnaud Vandyck diff --git a/src/main/org/apache/tools/ant/types/Path.java b/src/main/org/apache/tools/ant/types/Path.java index 382da09b9..7da4c9813 100644 --- a/src/main/org/apache/tools/ant/types/Path.java +++ b/src/main/org/apache/tools/ant/types/Path.java @@ -68,7 +68,7 @@ public class Path extends DataType implements Cloneable { /** * The system bootclassspath as a Path object. * - * @since Ant 1.7 + * @since Ant 1.6.2 */ public static Path systemBootClasspath = new Path(null, System.getProperty("sun.boot.class.path")); @@ -585,6 +585,8 @@ public class Path extends DataType implements Cloneable { kaffeJarFiles.setIncludes("*.jar"); addFileset(kaffeJarFiles); } + } else if ("GNU libgcj".equals(System.getProperty("java.vm.name"))) { + addExisting(systemBootClasspath); } if (System.getProperty("java.vendor").toLowerCase(Locale.US).indexOf("microsoft") >= 0) {