Re: testing to see if a file contains a string

2006-07-26 Thread Dominique Devienne
Good catch. I had missed the introduction of this condition in 1.6.3. Thanks, --DD On 7/26/06, Andrew Goktepe <[EMAIL PROTECTED]> wrote: You can also do this: See http://ant.apache.org/manual/CoreTypes/selectors.html -Andrew On 7/26/06, Dominique Devienne <[EMAIL PROTECTED]> wrote:

Re: testing to see if a file contains a string

2006-07-26 Thread Andrew Goktepe
You can also do this: See http://ant.apache.org/manual/CoreTypes/selectors.html -Andrew On 7/26/06, Dominique Devienne <[EMAIL PROTECTED]> wrote: Use but with a nested filter, so the property will be empty when the string is not found, which avoid storing the whole file in the pr

Re: testing to see if a file contains a string

2006-07-26 Thread Dominique Devienne
Use but with a nested filter, so the property will be empty when the string is not found, which avoid storing the whole file in the property. Then test whether the property is empty or not with a condition. Wrap the whole thing in a macro for convenience and expressiveness. --DD On 7/26/06, EJ