ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <>
Subject Re: testing to see if a file contains a string
Date Wed, 26 Jul 2006 17:54:17 GMT
Use <loadfile> but with a nested <linercontains> 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 Ciramella <> wrote:
> Is there some easy way to do this, or must I use <loadfile> then test to
> see if the property contains the string I'm looking for?
> I could have sworn there was an easy way to do this, but I can't find it
> now...

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

View raw message