ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject cvs commit: ant/src/etc/testcases/taskdefs signjar.xml
Date Wed, 01 Dec 2004 11:42:43 GMT
peterreilly    2004/12/01 03:42:43

  Modified:    src/etc/testcases/taskdefs signjar.xml
  Log:
  use isfileselected in test instead of the pathconvert hack
  
  Revision  Changes    Path
  1.5       +4 -13     ant/src/etc/testcases/taskdefs/signjar.xml
  
  Index: signjar.xml
  ===================================================================
  RCS file: /home/cvs/ant/src/etc/testcases/taskdefs/signjar.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- signjar.xml	26 Nov 2004 09:52:06 -0000	1.4
  +++ signjar.xml	1 Dec 2004 11:42:43 -0000	1.5
  @@ -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>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message