You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Raja Nagendra Kumar <Na...@tejasoft.com> on 2009/09/03 16:17:39 UTC
RegEx support for include and exclude patterns
Hi,
Is there a feature in ant <include name=""/>... & <exclude name="eee**/**"/>
tags of path like structures, filesets etc.
Currently * and ** are supported which are simple enough for most cases, but
for complex searches, we see the need for more powerful pattern matching.
Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com
--
View this message in context: http://www.nabble.com/RegEx-support-for-include-and-exclude-patterns-tp25277066p25277066.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: RegEx support for include and exclude patterns
Posted by Stefan Bodewig <bo...@apache.org>.
On 2009-09-03, Raja Nagendra Kumar <Na...@tejasoft.com> wrote:
> Is there a feature in ant <include name=""/>... & <exclude name="eee**/**"/>
> tags of path like structures, filesets etc.
Not in 1.7.1, but Ant's trunk has and thus Ant 1.8.0 when it is ready
will have
<filename regex="[a-z]*"/>
as selector. I think the code in
<http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/types/selectors/FilenameSelector.java?view=log>
would compile against Ant 1.7.x so you cuold build it yourself and use
it as custom selector.
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: RegEx support for include and exclude patterns
Posted by Raja Nagendra Kumar <Na...@tejasoft.com>.
Thank You Gilbert.
--
View this message in context: http://www.nabble.com/RegEx-support-for-include-and-exclude-patterns-tp25277066p25277414.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: RegEx support for include and exclude patterns
Posted by "Rebhan, Gilbert" <Gi...@huk-coburg.de>.
-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org]
Sent: Thursday, September 03, 2009 4:56 PM
To: user@ant.apache.org
Subject: Re: RegEx support for include and exclude patterns
/*
>> Is there a feature in ant <include name=""/>... & <exclude
>> name="eee**/**"/> tags of path like structures, filesets etc.
> see selectors/containsregexp =
> http://ant.apache.org/manual/CoreTypes/selectors.html
This one matches on a file's content, not its name.
*/
Oops, yes of course, so maybe <scriptselector> would be
sufficient !?
Regards, Gilbert
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: RegEx support for include and exclude patterns
Posted by Stefan Bodewig <bo...@apache.org>.
On 2009-09-03, Rebhan, Gilbert <Gi...@huk-coburg.de> wrote:
> From: Raja Nagendra Kumar [mailto:Nagendra.Raja@tejasoft.com]
>> Is there a feature in ant <include name=""/>... & <exclude
>> name="eee**/**"/> tags of path like structures, filesets etc.
> see selectors/containsregexp =
> http://ant.apache.org/manual/CoreTypes/selectors.html
This one matches on a file's content, not its name.
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: RegEx support for include and exclude patterns
Posted by "Rebhan, Gilbert" <Gi...@huk-coburg.de>.
-----Original Message-----
From: Raja Nagendra Kumar [mailto:Nagendra.Raja@tejasoft.com]
Sent: Thursday, September 03, 2009 4:18 PM
To: user@ant.apache.org
Subject: RegEx support for include and exclude patterns
/*
Hi,
Is there a feature in ant <include name=""/>... & <exclude name="eee**/**"/>
tags of path like structures, filesets etc.
*/
see selectors/containsregexp =
http://ant.apache.org/manual/CoreTypes/selectors.html
Regards, Gilbert
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org