]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Use uptodate to avoid rebuilding the FOP jar even if no classes
authorJoerg Pietschmann <pietsch@apache.org>
Sun, 27 Feb 2005 20:59:13 +0000 (20:59 +0000)
committerJoerg Pietschmann <pietsch@apache.org>
Sun, 27 Feb 2005 20:59:13 +0000 (20:59 +0000)
have been compiled.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198458 13f79535-47bb-0310-9956-ffa450edef68

build.xml

index d7dabfe1b0ae75978341d2b49a2bd99ed62871b6..11e46e5599c373ed4e0ffeff48ec8b6e10365bc1 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -484,10 +484,15 @@ list of possible build targets.
              targetDir="${user.hyphdest.dir}"/>
   </target>
 
+  <target name="uptodate-jar" depends="compile, hyphenation">
+    <uptodate property="jar.uptodate" targetfile="${build.dir}/${name}.jar">
+      <srcfiles dir= "${build.dest}"/>
+    </uptodate>
+  </target>
   <!-- =================================================================== -->
   <!-- Creates the class package                                           -->
   <!-- =================================================================== -->
-  <target name="package" depends="compile,hyphenation" description="Generates the jar files">
+  <target name="package" depends="compile,hyphenation,uptodate-jar" description="Generates the jar files" unless="jar.uptodate">
     <echo message="Creating the jar file ${build.dir}/${name}.jar"/>
 
     <tstamp>