| 1 | This patch eliminates the need for providing "xjavac", which saves building a
|
| 2 | package for the unmaintained "xerces-tools".
|
| 3 |
|
| 4 | Taken from https://anonscm.debian.org/viewvc/pkg-java/trunk/libxerces2-java/debian/patches/01_xjavac_taskdef.patch?revision=14507
|
| 5 |
|
| 6 | Index: b/build.xml
|
| 7 | ===================================================================
|
| 8 | |
| 9 | |
| 10 | @@ -39,7 +39,7 @@
|
| 11 | <property name="tools.dir" value="./tools"/>
|
| 12 |
|
| 13 | <!-- enable compilation under JDK 1.4 and above -->
|
| 14 | - <taskdef name="xjavac" classname="org.apache.xerces.util.XJavac">
|
| 15 | + <taskdef name="xjavac" classname="org.apache.tools.ant.taskdefs.Javac">
|
| 16 | <classpath>
|
| 17 | <pathelement location="${tools.dir}/bin/xjavac.jar"/>
|
| 18 | </classpath>
|
| 19 | @@ -291,7 +291,7 @@
|
| 20 | source="${javac.source}"
|
| 21 | target="${javac.target}"
|
| 22 | classpath="${build.dir}/classes:${tools.dir}/${jar.apis}:${tools.dir}/${jar.resolver}:${tools.dir}/${jar.serializer}"
|
| 23 | - debug="${debug}"
|
| 24 | + debug="${debug}" nowarn="true"
|
| 25 | debuglevel="${debuglevel}"
|
| 26 | deprecation="${deprecation}"
|
| 27 | optimize="${optimize}"
|
| 28 | @@ -359,7 +359,7 @@
|
| 29 | source="${javac.source}"
|
| 30 | target="${javac.target}"
|
| 31 | classpath="${build.dir}/classes:${tools.dir}/${jar.apis}"
|
| 32 | - debug="${debug}"
|
| 33 | + debug="${debug}" nowarn="true"
|
| 34 | debuglevel="${debuglevel}"
|
| 35 | includeAntRuntime="false"
|
| 36 | includeJavaRuntime="true"/>
|
| 37 | @@ -379,7 +379,7 @@
|
| 38 | source="${javac.source}"
|
| 39 | target="${javac.target}"
|
| 40 | classpath="${tools.dir}/${jar.apis}:${build.dir}/classes:./tools/junit.jar"
|
| 41 | - debug="${debug}"
|
| 42 | + debug="${debug}" nowarn="true"
|
| 43 | debuglevel="${debuglevel}"
|
| 44 | includeAntRuntime="false"
|
| 45 | includeJavaRuntime="true"/>
|