ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maarten Coene <>
Subject Re: ivy retrieve type attribute and !
Date Sat, 05 Dec 2009 13:25:19 GMT
I've taken a quick look at the code and I don't think that "!jar" or "(?!jar)" will work.
And as far as I could see, this has never worked in Ivy before.

Scott: maybe you patched Ivy to add this functionality?
(cfr your comment here: )


----- Original Message ----
From: Carlton Brown <>
Sent: Fri, December 4, 2009 6:04:39 AM
Subject: RE: ivy retrieve type attribute and !

> -----Original Message-----
> From: Scott Goldstein []
> Sent: Wednesday, December 02, 2009 3:06 AM
> To:
> Subject: ivy retrieve type attribute and !
> It used to be (not sure what version) that I could specify a value in
> the type attribute of the ivy:retrieve task starting with an
> exclamation point to state negation.  So, something like:
>  <ivy:retrieve pattern="[artifact].[ext]"
>       conf="main"
>       type="!jar"
>       resolveId="module_resolve_id"/>
> would reteieve all artifacts that were not of type jar.
> I'm now using Ivy version 2.0 and this no longer seems to work.

A negative lookahead regex will do it for you.  Use type="(?!jar)"

No idea if or when this ever changed.

This message and any attachment are confidential and may be
privileged or otherwise protected from disclosure and solely for
the use of the person(s) or entity to whom it is intended. If you
have received this message in error and are not the intended
recipient, please notify the sender immediately and delete this
message and any attachment from your system. If you are not the
intended recipient, be advised that any use of this message is
prohibited and may be unlawful, and you must not copy this
message or attachment or disclose the contents to any other person.


View raw message