ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neta Bar Tal" <NE...@Amdocs.com>
Subject filset issue
Date Thu, 12 Aug 2004 06:05:17 GMT

Hi All,
I'll explain what I need to do: I need to search in a certain directory
for files which are newer then a specific time. this direcoty is huge
and the task I wrote takes lots of time. can someone assist with this
issue?

thanks in advance


<target name="ONFSGetter_job"  description="hecking what files are newer
then the time stamp">
  
  <property name="ONB_TODAY_BUILD" value="${ONB_BUILD_DATE}
${ONB_BUILD_HOUR} ${ONB_BUILD_AMPM}"/>
  <path id="new.products.path">
   <fileset dir="${env.HOME}/proj/"
includes="*${ONB_VERNAME}/**/*,*${ONB_VERNAME}V64/**/*,*${ONB_VERNAME}V6
4O2/**/*"
excludes="*${ONB_VERNAME}/**/*.harvest.sig,*${ONB_VERNAME}V64/**/*.harve
st.sig,*${ONB_VERNAME}V64O2/**/*.harvest.sig,*${ONB_VERNAME}/**/*.harves
t.sig.bak,*${ONB_VERNAME}V64/**/*.harvest.sig.bak,*${ONB_VERNAME}V64O2/*
*/*.harvest.sig.bak,*${ONB_VERNAME}/*${ONB_VERNAME}*/*,*${ONB_VERNAME}V6
4/*${ONB_VERNAME}*/*,*${ONB_VERNAME}V64O2/*${ONB_VERNAME}*/*">
       <date datetime="${ONB_TODAY_BUILD}" when="after"/>
   </fileset>
  </path>
  <property name="new.products" refid="new.products.path"/>
  <propertyregex property="new.products.last" input="${new.products}"
regexp=":" replace=" " casesensitive="true" />
  <propertyregex property="updated.products"
input="${new.products.last}" regexp="${env.HOME}" replace=""
casesensitive="true" />
  <echo>ORENETA${updated.products}ORENETA</echo>
 </target>



the file system is as follows:

home/proj   - <proj name> - bin
                                        lib
                                           @other project name (sub
project) - this directory I want to skeep.



Neta Bar-Tal

* 972-9-7960521

*netab@amdocs.com




The information contained in this message is proprietary of Amdocs,
protected from disclosure, and may be privileged.
The information is intended to be conveyed only to the designated recipient(s)
of the message. If the reader of this message is not the intended recipient,
you are hereby notified that any dissemination, use, distribution or copying of
this communication is strictly prohibited and may be unlawful.
If you have received this communication in error, please notify us immediately
by replying to the message and deleting it from your computer.
Thank you.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message