ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From S G <>
Subject Reg:Zipping and deleting files on the basis of timestamp
Date Tue, 18 Aug 2009 11:48:32 GMT
    I want to zip and then delete the selected files from the src folder.I am using following
2 targets.

<target name="delete" depends="zip">
     <delete verbose="true">
          <fileset dir="${src}" includes="*.class">
                    <depth max="1"/>
                     <date datetime="${start.time}" when="before"/>

<target name="zip">
     <zip destdir="${dest}" duplicate="preserve">
         <zipfileset dir="${src}" prefix="${prefix}">
                     <depth max="1"/>
                     <date datetime="${start.time}" when="before"/>

Delete is working fine but zip target is not.The zipped folder doesnt contain the file which
is in the sub-directory of the {src}.
What's wrong in my zip target?

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message