Browse Source

use isfileselected in test instead of the pathconvert hack

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277089 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 20 years ago
parent
commit
a0a51d69b2
1 changed files with 4 additions and 13 deletions
  1. +4
    -13
      src/etc/testcases/taskdefs/signjar.xml

+ 4
- 13
src/etc/testcases/taskdefs/signjar.xml View File

@@ -37,22 +37,13 @@
<touch file="signtest.jar" datetime="06/28/2000 2:02 pm"/>
<signjar jar="signtest.jar" alias="testonly" keystore="testkeystore" storepass="apacheant"
preservelastmodified="true"/>
<!-- Currently there is no condition for testing the date of file - so
use a selector -->
<pathconvert property="signtest.jar.prop" targetos="unix">
<path>
<fileset dir="." includes="signtest.jar">
<date datetime="06/28/2000 2:02 pm" when="equal"/>
</fileset>
</path>
<mapper>
<flattenmapper/>
</mapper>
</pathconvert>

<fail message="preserveLastModified did not preserve the last modified time">
<condition>
<not>
<equals arg1="signtest.jar" arg2="signtest.jar"/>
<isfileselected file="signtest.jar">
<date datetime="06/28/2000 2:02 pm" when="equal"/>
</isfileselected>
</not>
</condition>
</fail>


Loading…
Cancel
Save