xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spepp...@apache.org
Subject svn commit: r757687 - /xmlgraphics/commons/trunk/build.xml
Date Tue, 24 Mar 2009 08:45:37 GMT
Author: spepping
Date: Tue Mar 24 08:45:35 2009
New Revision: 757687

URL: http://svn.apache.org/viewvc?rev=757687&view=rev
Log:
Separated copying of resource files from java compilation, because it
will not be done by a java compiler without ant. Target compile-java
is now replaced by compile.

Modified:
    xmlgraphics/commons/trunk/build.xml

Modified: xmlgraphics/commons/trunk/build.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/build.xml?rev=757687&r1=757686&r2=757687&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/build.xml (original)
+++ xmlgraphics/commons/trunk/build.xml Tue Mar 24 08:45:35 2009
@@ -25,7 +25,7 @@
 
   <property name="Name" value="Apache XML Graphics Commons"/>
   <property name="name" value="xmlgraphics-commons"/>
-  <property name="year" value="1999-2008"/>
+  <property name="year" value="1999-2009"/>
 
   <property name="javac.debug" value="on"/>
   <property name="javac.optimize" value="off"/>
@@ -189,6 +189,15 @@
   <!-- =================================================================== -->
   <!-- Compiles the source directory                                       -->
   <!-- =================================================================== -->
+  <target name="compile" depends="compile-java, compile-copy-resources" description="Compiles
the source code"/>
+
+  <target name="compile-copy-resources" description="Copies the resource files into the
build directory">
+    <mkdir dir="${build.classes.dir}"/>
+    <copy todir="${build.classes.dir}">
+      <fileset dir="${src.res.dir}"/>
+    </copy>
+  </target>
+
   <target name="compile-pattern-with-codecs" depends="init" unless="internal-codecs.eff.disabled">
     <echo message="Internal codecs will be compiled."/>
     <patternset id="compile-pattern">
@@ -204,7 +213,7 @@
       <exclude name="**/image/writer/internal/TIFFImageWriter*.java"/>
     </patternset>
   </target>
-  <target name="compile-java" depends="init, compile-pattern-with-codecs, compile-pattern-without-codecs"
description="Compiles the source code">
+  <target name="compile-java" depends="init, compile-pattern-with-codecs, compile-pattern-without-codecs">
     <!-- create directories -->
     <mkdir dir="${build.classes.dir}"/>
     <javac destdir="${build.classes.dir}" fork="${javac.fork}" debug="${javac.debug}"
@@ -214,22 +223,19 @@
       <patternset refid="compile-pattern"/>
       <classpath refid="libs-build-classpath"/>
     </javac>
-    <copy todir="${build.classes.dir}">
-      <fileset dir="${src.res.dir}"/>
-    </copy>
   </target>
 
   <!-- =================================================================== -->
   <!-- Creates JAR files                                                   -->
   <!-- =================================================================== -->
 
-  <target name="uptodate-jar-main" depends="compile-java">
+  <target name="uptodate-jar-main" depends="compile">
     <uptodate property="jar.main.uptodate" targetfile="${build.dir}/${name}.jar">
       <srcfiles dir= "${build.classes.dir}"/>
     </uptodate>
   </target>
 
-  <target name="jar-main" depends="compile-java,uptodate-jar-main" description="Generates
the main jar file" unless="jar.main.uptodate">
+  <target name="jar-main" depends="compile,uptodate-jar-main" description="Generates the
main jar file" unless="jar.main.uptodate">
     <jar jarfile="${build.dir}/${name}-${version}.jar" basedir="${build.classes.dir}">
       <manifest>
         <attribute name="Implementation-Title" value="${Name}"/>



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


Mime
View raw message