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 5c3ea7e43f
commit ab2dd22b9a
2 changed files with 6 additions and 4 deletions

View File

@ -104,10 +104,9 @@
<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>
@ -120,6 +119,9 @@
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>

Binary file not shown.