Fixed uptodate check for more recent jar files.

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
This commit is contained in:
Nicola Ken Barozzi 2002-04-09 17:02:20 +00:00
parent 48b2018d9c
commit faef26e475
2 changed files with 6 additions and 4 deletions

View File

@ -104,9 +104,8 @@
<condition property="cent-unjar.not.required"> <condition property="cent-unjar.not.required">
<and> <and>
<uptodate targetfile="${current.cent.jar}"> <uptodate targetfile="${cents.dir}/${current.cent.jar.name}.${cent.dir.suffix}/${task.properties.name}"
<srcfiles dir= "." includes="${cents.dir}/${current.cent.jar.name}.${cent.dir.suffix}/${task.properties.name}"/> srcfile="${current.cent.jar}"/>
</uptodate>
<available type="file" file="${cents.dir}/${current.cent.jar.name}.${cent.dir.suffix}/${task.properties.name}"/> <available type="file" file="${cents.dir}/${current.cent.jar.name}.${cent.dir.suffix}/${task.properties.name}"/>
</and> </and>
</condition> </condition>
@ -120,6 +119,9 @@
depends="-cent-unjar-check"> depends="-cent-unjar-check">
<echo message="Expanding ${current.cent.jar}..." /> <echo message="Expanding ${current.cent.jar}..." />
<unjar src="${current.cent.jar}" dest="${cents.dir}"/> <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}." /> <echo message="... ${current.cent.jar} expanded in ${current.cent.jar.name}." />
</target> </target>

Binary file not shown.