ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <anto...@gmx.de>
Subject Re: filset issue
Date Thu, 12 Aug 2004 09:03:17 GMT
Neta,
change your include patterns so that they do not start with stars *
for instance
instead of *${ONB_VERNAME}/**/*
use

windows2000${ONB_VERNAME}/**/*
rs2000${ONB_VERNAME}/**/*
linux${ONB_VERNAME}/**/*

and use ant 1.6 if you do not do it already.

Under ant 1.6, there is a special optimization of directory scanning
happening when none of the include patterns start with wildcards.

Cheers,
Antoine


> 
> 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.


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


Mime
View raw message