You are viewing a plain text version of this content. The canonical link for it is here.
Posted to alexandria-dev@jakarta.apache.org by Stefan Bodewig <bo...@apache.org> on 2002/02/22 14:03:35 UTC

[PATCH] No need to have jenny.jar in CLASSPATH in build.xml

I had to apply the appended patch to run "build scripts" on my box - I
don't want to add jenny.jar to my CLASSPATH manually 8-)

Also get rid of Ant's deprecation warning.

Stefan

Index: build.xml
===================================================================
RCS file: /home/cvspublic/jakarta-alexandria/proposal/gump/build.xml,v
retrieving revision 1.8
diff -u -r1.8 build.xml
--- build.xml	14 Jan 2002 14:05:38 -0000	1.8
+++ build.xml	22 Feb 2002 13:15:33 -0000
@@ -18,7 +18,7 @@
     <mkdir dir="classes"/>
     <mkdir dir="work"/>
     <javac srcdir="java" destdir="classes"/>
-    <jar file="jenny.jar" basedir="classes"/>
+    <jar destfile="jenny.jar" basedir="classes"/>
 
     <uptodate property="uptodate" targetfile="work/merge.xml">
       <srcfiles dir="." includes=".timestamp"/>
@@ -37,6 +37,10 @@
   <!-- Merge the xml sources, resolving references -->
   <target name="gen" depends="compile" unless="uptodate">
     <java classname="Jenny" fork="yes" failonerror="true">
+      <classpath>
+        <pathelement location="jenny.jar" />
+        <pathelement path="${java.class.path}" />
+      </classpath>
       <arg value="${workspace}"/>
     </java>
   </target>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>