On 3/9/07, Gilles Scokart <[EMAIL PROTECTED]> wrote:

Hi,

Personally, I don't thing it is useful.  It adds an additional concept
that
will make the adoption of ivy a little bit more complexes (very slightly I
agree, but it is still a new tag).

I fear that a new user might interpret this tag as something else than a
syntactic shortcut.  Also the usage of the rev attributes might raise some
questions that are avoided with the current syntax (what did I have to
change if I want to use a patched version of spring-aop?)

It is just my personal opinion, and other might thing differently, but I
think the existing syntax is easier to read, and not really much longer to
write (actually I think it is shorter to write as there is the same number
of cut&paste, but not the 'group' tag to write).

It was just my 2 cents opinion.  As I said, other might thing differently.


Thanks for sharing your opinion. One advantage I see with this syntax would
be to ease maintenance, allowing to change the version you use more simply
than now (except if you use a variable, but it's more work).

But I haven't a strong opinion about that, it was just a thought. So if
nobody else than me see interest with it, I will spend my time to other
things than implementing it :-)

- Xavier

Gilles


> -----Original Message-----
> From: Xavier Hanin [mailto:[EMAIL PROTECTED]
> Sent: vendredi 9 mars 2007 9:26
> To: [email protected]
> Subject: grouping dependencies
>
> Hi All,
>
> I'm currently working on a project relying on Ivy to manage its
> dependencies, and leveraging maven 2 repository. After fixing some bugs
in
> pom parsing, it now works pretty well. But there is one thing I notice
> whlie
> working with maven 2 repo is that I often have to declare dependencies
on
> a
> set of modules from the same org (groupId in maven 2). For instance:
>         <dependency org="org.springframework" name="spring-core"
> rev="2.0.2"
> />
>         <dependency org="org.springframework" name="spring-beans"
> rev="2.0.2"
> />
>         <dependency org="org.springframework" name="spring-aop"
> rev="2.0.2"
> />
>         <dependency org="org.springframework" name="spring-hibernate3"
> rev="
> 2.0.2" />
>
> Obviously I should better use an ivy variable for the revision, but it's
> still very verbose IMO. So I was thinking about a new syntax, very easy
to
> implement (handled only as a shortcut, do not modify ModuleDescriptor
> structure), allowing to group a set of dependencies by specifying some
> attributes only once. For instance:
>     <group org="org.springframework" rev="2.0.2">
>         <dependency name="spring-core" />
>         <dependency name="spring-beans" />
>         <dependency name="spring-aop" />
>         <dependency name="spring-hibernate3" />
>     </group>
>
> What do you think? Is it something that could help, ugly or wonderful?
>
> - Xavier


Reply via email to