]> granicus.if.org Git - docbook-dsssl/commitdiff
Only build indexer if it is dirty
authorDavid Cramer <david@thingbag.net>
Thu, 19 Aug 2010 20:23:46 +0000 (20:23 +0000)
committerDavid Cramer <david@thingbag.net>
Thu, 19 Aug 2010 20:23:46 +0000 (20:23 +0000)
xsl/webhelp/build.xml

index c1ff5bc2315102257bd065b83ed4bed5fe609b1f..715a71cff85c2530ebca518791bed8a77f56d7cb 100755 (executable)
 
   <target name="webhelp" depends="validate,chunk,index"/>
 
-  <target name="build-indexer">
+  <uptodate property="indexerBuild.notRequired" targetfile="indexer/lib/nw-cms.jar" >
+    <srcfiles dir="indexer/src" includes="**/*"/>
+  </uptodate>
+
+  <target name="build-indexer" unless="indexerBuild.notRequired">
 
     <mkdir dir="indexer/lib/htmlsearch"/>  
        <javac
 
   <target name="zip" depends="build-indexer,webhelp">
 
-       <xslt
+       <!--xslt
          in="${ant.file.dir}/xsl/webhelp-common.xsl"
          out="${ant.file.dir}/xsl/profile-webhelp-common.xsl"
          force="yes"
          style="${ant.file.dir}/../profiling/xsl2profile.xsl"
          classpath="${xslt-processor-classpath}">
          <xmlcatalog refid="catalog"/>
-       </xslt>
+       </xslt-->
 
        <zip destfile="../webhelp-gsoc2010-beta.zip"
          basedir=".."