ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bck...@worldonline.dk (Finn Bock)
Subject [PATCH] for JavaCC task on JDK1.1
Date Sun, 25 Nov 2001 19:28:10 GMT
Hi,

Assuming that ant should still be usefull when running JDK1.1, I have
some patches that will helped my use of ant. 

This patch makes it possible to use the JavaCC and JJTree tasks with
a JDK1.1 VM where the vm runtime classes must be specified on the
-classpath option.

regards,
finn

diff -u -r1.5 JJTree.java
--- src/main/org/apache/tools/ant/taskdefs/optional/javacc/JJTree.java	2001/10/28 21:30:21
1.5
+++ src/main/org/apache/tools/ant/taskdefs/optional/javacc/JJTree.java	2001/11/25 18:42:24
@@ -202,6 +202,7 @@
         final Path classpath = cmdl.createClasspath(project);
         classpath.createPathElement().setPath(javaccHome.getAbsolutePath() +
                                                   "/JavaCC.zip");
+        classpath.addJavaRuntime();
 
         final Commandline.Argument arg = cmdl.createVmArgument();
         arg.setValue("-mx140M");
Index: src/main/org/apache/tools/ant/taskdefs/optional/javacc/JavaCC.java
===================================================================
RCS file: /home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/javacc/JavaCC.java,v
retrieving revision 1.9
diff -u -r1.9 JavaCC.java
--- src/main/org/apache/tools/ant/taskdefs/optional/javacc/JavaCC.java	2001/10/28 21:30:21
1.9
+++ src/main/org/apache/tools/ant/taskdefs/optional/javacc/JavaCC.java	2001/11/25 18:42:25
@@ -245,6 +245,7 @@
         final Path classpath = cmdl.createClasspath(project);
         classpath.createPathElement().setPath(javaccHome.getAbsolutePath() +
                                                   "/JavaCC.zip");
+        classpath.addJavaRuntime();
 
         final Commandline.Argument arg = cmdl.createVmArgument();
         arg.setValue("-mx140M");


--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message