[jdom-interest] Patch for JDK1.1
John Interrante
jinterra at nycap.rr.com
Sun May 13 10:29:15 PDT 2001
Here's a patch against today's CVS tree to allow JDOM to build under
JDK1.1 again. It simply avoids compiling the Easter Egg code which
was easier than trying to make it compile under JDK1.1.
John
-------------- next part --------------
Index: build.xml
===================================================================
RCS file: /home/cvspublic/jdom/build.xml,v
retrieving revision 1.18
diff -u -2 -w -B -r1.18 build.xml
--- build.xml 2001/03/15 06:07:17 1.18
+++ build.xml 2001/05/13 17:00:45
@@ -152,4 +152,14 @@
<!-- =================================================================== -->
+ <!-- Compiles the Easter Egg code unless JDK1.1 is being used -->
+ <!-- =================================================================== -->
+ <target name="egg" unless="coll.present">
+ <javac srcdir="${package.dir}"
+ destdir="${build.dest}"
+ debug="${debug}"
+ optimize="${optimize}"/>
+ </target>
+
+ <!-- =================================================================== -->
<!-- Compiles the samples directory -->
<!-- =================================================================== -->
@@ -164,13 +174,9 @@
<!-- Creates the class package -->
<!-- =================================================================== -->
- <target name="package" depends="compile">
+ <target name="package" depends="compile,egg">
<fixcrlf srcdir="." includes="**/*.bat" cr="add"/>
<fixcrlf srcdir="." includes="**/*.sh" cr="remove"/>
<copydir src="${package.dir}/META-INF"
dest="${build.dest}/META-INF"/>
- <javac srcdir="${package.dir}"
- destdir="${build.dest}"
- debug="${debug}"
- optimize="${optimize}"/>
<jar jarfile="${build.dir}/${name}.jar"
basedir="${build.dest}"
More information about the jdom-interest
mailing list