ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suzanne Dorman" <>
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: [] 
Sent: Thursday, October 05, 2006 3:17 AM
Subject: AW: Parsing directory names

>I have the following directory structure:
>       filea
>       fileb
>       filec
>       filed
>       filee
>My build needs to determine which files to zip based on the directory 
>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}"/>


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message