ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlton Brown" <>
Subject RE: ivy retrieve type attribute and !
Date Fri, 04 Dec 2009 05:04:39 GMT
> -----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