ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Elizabeth Cooper <ecoo...@ergotech.com>
Subject Re: regexp file content search to form a fileset
Date Sun, 22 Sep 2002 04:34:25 GMT
Jake:
As far as I can tell mappers only deal with the file names, and do not 
apply the regexp to the contents of the file. I need to look INSIDE the 
file to make the match for the fileset. Although, it is true that you can 
use a regexp for the file name conversion.
-Liz

At 10:37 PM 9/21/02, you wrote:
>Look at the <mapper> documentation.
>
>
>Jake
>
>At 09:59 PM 9/21/2002 -0600, you wrote:
>>To anyone who can help:
>>
>>A long time ago (maybe a couple of months) I looked through the Ant 1.5 
>>documentation and came across (I thought)  a way to get a fileset using a 
>>regexp  -- searching through the CONTENTS of a source code file using a 
>>regexp search criteria to make the fileset.
>>
>>Now I cannot find anything, so I must have been dreaming or something.
>>
>>Now all I can find related to this is ReplaceRegExp  (uses regexp to make 
>>a file set, but based on file names, not content), and <contains> which 
>>searches the file contents, but only based on a String, not a regular 
>>expression. <contains> would be close to what I need, but I cannot search 
>>just for a string -- the match must be close to the beginning of the line 
>>and MOST IMPORTANTLY ignore white space (as well as be case insensitive).
>>
>>For example, I have some source code that may have a comment such as 
>>"#  Java-Bean: True" or, in another file, "#     Java-Bean:True" and both 
>>must match the criteria (only difference is white space), so both are 
>>included in the fileset.
>>
>>So can someone tell me if this is possible in Ant 1.5.1 and how?
>>
>>TIA
>>
>>
>>
>>--
>>To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
>>For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


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


Mime
View raw message