ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suzanne Dorman" <suzanne.dor...@segsoftware.com>
Subject RE: Parsing directory names
Date Thu, 05 Oct 2006 12:39:35 GMT
The user specifies the version.  If they specify 1.1, I need to get the
directories of 1.0 and 1.1 but not 1.1.1 and 2.0.  If they specify 1.1.1, I
have to get 1.0, 1.1, and 1.1.1.  So it's not as simple as just using the
version they specify, I have to add some logic to figure out what versions
are higher or lower than the specified version.  For this, I need some kind
of string manipulation. 

-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
Sent: Thursday, October 05, 2006 3:17 AM
To: user@ant.apache.org; suzanne.dorman@segsoftware.com
Subject: AW: Parsing directory names

>I have the following directory structure:
>
>2005_1.0
>       filea
>       fileb
>2005_1.1
>       filec
>2005_1.1.1
>       filed
>2005_2.0
>       filee
>
>
>My build needs to determine which files to zip based on the directory 
>name.
>If the user specifies 1.1, I need to include all files in the


Who specifies? The user or the build process?
If the user does, the simplest way would be

<fileset dir="2005_${version}"/>



Jan


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


Mime
View raw message