ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Hanin" <xavier.ha...@gmail.com>
Subject Re: regex not working in dependency exclude?
Date Tue, 03 Apr 2007 05:57:59 GMT
On 4/3/07, Jing Xue <jingxue@digizenstudio.com> wrote:
>
> Hi,
>
> Same trunk build from 4/1 as my last message.
>
> I have this fragment:
> <dependency org="org.springframework" name="spring-hibernate3" rev="2.0.3"
> conf="build->default">
>   <exclude module="jta" />
>   <exclude module="spring-*" />
> </dependency>
>
> The idea is to exclude the spring-* module jars, because I have already
> got spring.jar.
>
> That pattern didn't work though. I had to do:
> <dependency org="org.springframework" name="spring-hibernate3" rev="2.0.3"
> conf="build->default">
>   <exclude module="jta" />
>   <exclude module="spring-core" />
>   <exclude module="spring-dao" />
>   <exclude module="spring-beans" />
>   <exclude module="spring-jdbc" />
>   <exclude module="spring-context" />
> </dependency>
>
> What am I missing? Thanks in advance for any hint.


 First, the documentation is misleading, I've just fixed it, because Ivy
uses a pattern matcher to match your exclusion expression, so you have to
set another attribute to recognize regular expression:
<dependency org="org.springframework" name="spring-hibernate3" rev="2.0.3"
conf="build->default">
  <exclude module="jta" />
  <exclude module="spring-*" pattern="regexp"/>
</dependency>
Second, I've faced some issues on the trunk with exclusion, so I think there
is a bug. I'll try to reproduce it in my own environment, and keep you
informed.

- Xavier

-- 
Learn Ivy at ApacheCon: http://www.eu.apachecon.com/
Manage your dependencies with Ivy!
http://incubator.apache.org/ivy/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message