You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by Neil Lott <ne...@yahoo.com> on 2008/03/13 21:54:13 UTC
changing pattern example
How would I define a changing pattern in the filesystem tag instead of
this to
<filesystem name="local" checkmodified="true" changingPattern="5.1">
that says anything that starts with "twc" and ends with "5.1"
I tried
<filesystem name="local" checkmodified="true"
changingPattern="twc*5.1">
But that didn't work.
Neil
Re: changing pattern example
Posted by Xavier Hanin <xa...@gmail.com>.
On Thu, Mar 13, 2008 at 9:54 PM, Neil Lott <ne...@yahoo.com> wrote:
> How would I define a changing pattern in the filesystem tag instead of
> this to
>
> <filesystem name="local" checkmodified="true" changingPattern="5.1">
>
> that says anything that starts with "twc" and ends with "5.1"
>
> I tried
>
> <filesystem name="local" checkmodified="true"
> changingPattern="twc*5.1">
This can work if you use the 'glob' pattern matcher (which require oro
in your classpath). Have a look at the Pattern matcher section in the
main concept doc page.
Xavier
>
> But that didn't work.
>
> Neil
>
>
--
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/