]> source.dussan.org Git - poi.git/commitdiff
Fixed uptodate check for more recent jar files.
authorNicola Ken Barozzi <nicolaken@apache.org>
Tue, 9 Apr 2002 17:02:20 +0000 (17:02 +0000)
committerNicola Ken Barozzi <nicolaken@apache.org>
Tue, 9 Apr 2002 17:02:20 +0000 (17:02 +0000)
Now more recent jar files are correctly expanded when the target dir
is present but older.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352386 13f79535-47bb-0310-9956-ffa450edef68

tools/antipede/build.xtarget
tools/cents/centipede.cent.jar

index 83d38b36d1d5c823d0012105fd895867aa115021..5b907713d9f4b819d7c5787be61997fcf002ff3f 100644 (file)
     
     <condition property="cent-unjar.not.required">
       <and>
-        <uptodate targetfile="${current.cent.jar}">
-          <srcfiles dir= "." includes="${cents.dir}/${current.cent.jar.name}.${cent.dir.suffix}/${task.properties.name}"/>      
-        </uptodate>
-       <available type="file" file="${cents.dir}/${current.cent.jar.name}.${cent.dir.suffix}/${task.properties.name}"/>
+        <uptodate targetfile="${cents.dir}/${current.cent.jar.name}.${cent.dir.suffix}/${task.properties.name}"
+                  srcfile="${current.cent.jar}"/>
+        <available type="file" file="${cents.dir}/${current.cent.jar.name}.${cent.dir.suffix}/${task.properties.name}"/>
       </and>
     </condition>
  
            depends="-cent-unjar-check">
       <echo message="Expanding ${current.cent.jar}..." />
       <unjar src="${current.cent.jar}" dest="${cents.dir}"/> 
+      <touch>
+        <fileset dir="${cents.dir}/${current.cent.jar.name}.${cent.dir.suffix}"/>
+      </touch>      
       <echo message="... ${current.cent.jar} expanded in ${current.cent.jar.name}." />    
   </target> 
 
index 95f6f34928482a4822693ed605c6e5ce48ca99d1..91d67c39c60c69a70afef66faab6a1729c5cd6de 100644 (file)
Binary files a/tools/cents/centipede.cent.jar and b/tools/cents/centipede.cent.jar differ