ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msor...@softhome.net
Subject Re: AW: generate file list with parameterized regexp
Date Tue, 20 May 2008 15:46:59 GMT
Yes I have tried "containsregexp". As far as I could tell, there is no way 
to parameterize the regexp within the fileset, so that does not work. 

Jan.Materne@rzf.fin-nrw.de writes: 

> Have you tried http://ant.apache.org/manual/CoreTypes/selectors.html#regexpselect ?
> Then you got the 'problem' of correctly masking the regexp. 
> 
> Jan 
> 
>> -----Urspr√ľngliche Nachricht-----
>> Von: msorens@softhome.net [mailto:msorens@softhome.net] 
>> Gesendet: Dienstag, 20. Mai 2008 07:57
>> An: user@ant.apache.org
>> Betreff: generate file list with parameterized regexp 
>> 
>> 
>> I am ant-challenged today: I want to find a set of files in a 
>> tree matching 
>> a given regular expression. The catch is that the regexp is 
>> not constant, 
>> but is a function of the file name. I have tried permutations of 
>> pathconvert, for loops, and loadfile, filterchain, and 
>> linecontainsregexp, 
>> stumbling when I could not change the property loaded from 
>> loadfile after 
>> its initial value. Any suggestions?  
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org 
>> 
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org 
> 
 

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


Mime
View raw message