ant-user mailing list archives

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

Hi Antonie,
This is my structure of file system

<home>/proj/ - abc100V64	-bin
				-lib
				-classes
		abc200V64 	- bin
				-lib
				-classes
		efg100V64 	- bin
				- lib
				-classes

I want my fileset to search only on the names that ends with 100 and not
others and list all the files that are newer then a specific date..
This is what I do:
<fileset dir="/fndproj2/fnd/mb_ccfnd" followsymlinks="false"
includes="proj/*${ONB_VERNAME}V64/**/*"
excludes="proj/*${ONB_VERNAME}V64/**/*.harvest.sig,proj/*${ONB_VERNAME}V
64/**/*.harvest.sig.bak">
			    <date datetime="${ONB_TODAY_BUILD}"
when="after"/>
			</fileset>
		
		 
ONB_VERNAME is the version 100.

There are a lots of files and directories and ant seems to be stuck

Can you pleae help....( I'm kind of bewbie..)

Thanks
netaB


-----Original Message-----
From: Antoine Levy-Lambert [mailto:antoine@gmx.de]
Sent: Thursday: August 12: 2004 12:03 PM
To: Ant Users List
Subject: Re: filset issue

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/**/*.har
> ve
> st.sig,*${ONB_VERNAME}V64O2/**/*.harvest.sig,*${ONB_VERNAME}/**/*.harv
> es
> 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



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