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:
parent
5c3ea7e43f
commit
ab2dd22b9a
@ -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.
Loading…
Reference in New Issue
Block a user