xerces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mrgla...@apache.org
Subject svn commit: r581694 - /xerces/java/trunk/build.xml
Date Wed, 03 Oct 2007 19:12:30 GMT
Author: mrglavas
Date: Wed Oct  3 12:12:30 2007
New Revision: 581694

URL: http://svn.apache.org/viewvc?rev=581694&view=rev
Log:
Adding a target for building the xjavac.jar file.

Modified:
    xerces/java/trunk/build.xml

Modified: xerces/java/trunk/build.xml
URL: http://svn.apache.org/viewvc/xerces/java/trunk/build.xml?rev=581694&r1=581693&r2=581694&view=diff
==============================================================================
--- xerces/java/trunk/build.xml (original)
+++ xerces/java/trunk/build.xml Wed Oct  3 12:12:30 2007
@@ -69,6 +69,9 @@
     <property name='jar.resolver' value='resolver.jar'/>
     <property name='jar.serializer' value='serializer.jar'/>
     <property name='jar.junit' value='junit.jar'/>
+    <property name='jar.ant' value='ant.jar'/>
+    <property name='jar.ant.nodeps' value='ant-nodeps.jar'/>
+    <property name='jar.xjavac' value='xjavac.jar'/>
     
     <property name='default.parser.config.name' value='XIncludeAwareParserConfiguration'/>
     <property name='default.parser.config.qualified' value='org.apache.xerces.parsers.XIncludeAwareParserConfiguration'/>
@@ -128,6 +131,7 @@
     <echo message=" jars --> generates xercesImpl &amp; xercesSamples jars"/>
     <echo message=" jar-schema11 --> 'jar' + XML Schema 1.1 support"/>
     <echo message=" jars-schema11 --> 'jars' + XML Schema 1.1 support"/>
+    <echo message=" xjavac-jar --> generates the xjavac.jar file"/>
     <echo message=" docs     --> generates the HTML documentation"/>
     <echo message=" javadocs --> generates the API docs (needs Java 1.2 or higher)"/>
     <echo message=" samples  --> compiles the samples source code"/>
@@ -1458,5 +1462,35 @@
     <copy file="${tools.dir}/${jar.resolver}" tofile="${build.dir}/${jar.resolver}"/>
     <!-- include the Xalan Serializer -->
     <copy file="${tools.dir}/${jar.serializer}" tofile="${build.dir}/${jar.serializer}"/>
+  </target>
+
+  <!-- =================================================================== -->
+  <!-- Builds the xjavac jar file                                          -->
+  <!-- =================================================================== -->
+  <target name="xjavac-jar" depends="prepare">
+    <mkdir dir="${build.src}"/>
+    <mkdir dir="${build.dest}"/>
+  	
+    <copy file="${tools.dir}/src/XJavac.java"
+          tofile="${build.src}/org/apache/xerces/util/XJavac.java"/>
+  	
+    <javac srcdir="${build.src}"
+           destdir="${build.dest}"
+           classpath="${build.dir}/classes:${tools.dir}/${jar.ant}:${tools.dir}/${jar.ant.nodeps}"
+           debug="${debug}"
+           deprecation="${deprecation}"
+           optimize="${optimize}"
+           includeAntRuntime="false"
+           includeJavaRuntime="false"/>
+  	
+    <jar jarfile="${build.dir}/${jar.xjavac}"
+         basedir="${build.dest}"
+         compress="true"
+         includes="org/apache/xerces/util/XJavac.class">
+      <manifest>
+        <attribute name="Ant-Version" value="${ant.version}"/>
+      </manifest>
+      <metainf dir="." includes="LICENSE,NOTICE"/>
+    </jar>
   </target>
 </project>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org


Mime
View raw message