ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From S G <tc1...@yahoo.com>
Subject Reg:Zipping and deleting files on the basis of timestamp
Date Tue, 18 Aug 2009 11:48:32 GMT
Hi,
    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">
               <and>
                    <depth max="1"/>
                     <date datetime="${start.time}" when="before"/>
               </and>
          </fileset>
     </delete>
</target>

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

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?
                        Thanks



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message