Replaced <available> check with an <uptodate> check, to greatly help people working
authorSimon Howkins <simonh@symbian.org>
Fri, 16 Oct 2009 15:06:40 +0100
changeset 679 7e493c0264f3
parent 678 be06d8de937c
child 680 81550e87fc91
Replaced <available> check with an <uptodate> check, to greatly help people working on the FBF who want the file automatically regenerated according to the changes they have made.
common/build.xml
--- a/common/build.xml	Fri Oct 16 14:43:38 2009 +0100
+++ b/common/build.xml	Fri Oct 16 15:06:40 2009 +0100
@@ -466,13 +466,29 @@
         </antcall>
     </target>
     
-    <target name="sf-zip-content" >
+    <target name="sf-zip-content">
+        <!-- If it's the file we use for everything, and it's not up to date... -->
         <if>
           <and>
             <equals arg1="${zip.config.file}" arg2="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
-            <not><available file="${zip.config.file}"/></not>
-          </and>  
+            <not>
+              <and>
+                <uptodate targetfile="${sf.common.config.dir}/generated/zip.cfg.xml.ftl">
+                  <srcfiles dir="${sf.common.config.dir}">
+                    <include name="tools/populateziptemplate.pl"/>
+                    <include name="templates/zip.cfg.xml.ftl.template"/>
+                  </srcfiles>
+                </uptodate>
+                <uptodate targetfile="${sf.common.config.dir}/generated/zip.cfg.xml.ftl">
+                  <srcfiles dir="${sf.spec.sourcesync.sourcespecdir}">
+                    <include name="${sf.spec.sourcesync.sourcespecfile}"/>
+                  </srcfiles>
+                </uptodate>
+              </and>
+            </not>
+          </and>
           <then>
+            <!-- (Re)build the packaging config file -->      
             <runtarget target="sf-preprocess-package-config"/>
           </then>  
         </if>