You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by or...@io7m.com on 2012/11/29 18:59:41 UTC

Match syntax?

Hello.

Quite a few things in Maven take patterns as input. One example would
be the Assembly plugin, which accepts strings of the form "*.java", etc,
in its configuration when referring to files to include/exclude. Is
there a description anywhere of the syntax of these match patterns? Are they
just standard Java regexes?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Match syntax?

Posted by or...@io7m.com.
On Thu, 29 Nov 2012 19:12:37 +0100
"Robert Scholte" <rf...@apache.org> wrote:

> These patterns were introduced with Ant.
> http://ant.apache.org/manual/dirtasks.html#patterns is probably the best  
> page describing the usage.

Thank you!

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Match syntax?

Posted by "Mark H. Wood" <mw...@IUPUI.Edu>.
On Thu, Nov 29, 2012 at 07:12:37PM +0100, Robert Scholte wrote:
> These patterns were introduced with Ant.

Well, glob matching goes back at least as far as Unix v1

  http://en.wikipedia.org/wiki/Glob_%28programming%29

Ant improved on this by adding the double-asterisk that matches any
depth of hierarchy levels (treating a level as an atom, not a string).

They're clearly not REs:  "*.something" viewed as an RE begins with a
quantifier which has nothing to quantify.

-- 
Mark H. Wood, Lead System Programmer   mwood@IUPUI.Edu
I don't do "doorbusters".

Re: Match syntax?

Posted by Robert Scholte <rf...@apache.org>.
These patterns were introduced with Ant.
http://ant.apache.org/manual/dirtasks.html#patterns is probably the best  
page describing the usage.

Robert

Op Thu, 29 Nov 2012 18:59:41 +0100 schreef  
<or...@io7m.com>:

> Hello.
>
> Quite a few things in Maven take patterns as input. One example would
> be the Assembly plugin, which accepts strings of the form "*.java", etc,
> in its configuration when referring to files to include/exclude. Is
> there a description anywhere of the syntax of these match patterns? Are  
> they
> just standard Java regexes?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org