You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Stefan Bodewig <bo...@apache.org> on 2002/08/02 08:28:32 UTC
Re: Search a substring
On Wed, 31 Jul 2002, Matt Benson <gu...@yahoo.com> wrote:
> Looks interesting but I can't find it in the
> documentation.
You'll need Ant 1.5 - somewhere at the end of the list of
<http://jakarta.apache.org/ant/manual/CoreTasks/conditions.html>
between filesmatch and istrue.
> Would it be specified:
>
> <condition>
> <contains string="Ant" substring="a"
> casesensitive="false" />
> </condition>
Yes - but you'll have to add a property attribute to <condition> as
well.
After
<condition property="Ant contains some kind of a">
<contains string="Ant" substring="a" casesensitive="false" />
</condition>
<condition property="Ant contains lower case a">
<contains string="Ant" substring="a" casesensitive="true" />
</condition>
The property "Ant contains some kind of a" will be set to "true" and
the property "Ant contains lower case a" will be unset.
Stefan
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>