ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Hanin" <>
Subject Re: Store pom dependency Managment in extra data
Date Wed, 13 Feb 2008 09:12:21 GMT
On Feb 13, 2008 9:10 AM, Gilles Scokart <> wrote:

> In the rewrite of the pom parser, I would like to store the maven
> dependency
> managment (and maybe also the properties) into the extra data of the
> moduleRevisionId.
> That way, the corresponding ivy module descriptor would contains all the
> info coming from the pom.  I think it might be usefull when it is
> serialized
> are reused from the cache (thought I'm not sure if it's the original pom
> or
> the serialized ivy.xml that is used in that case).
> However, I have noticed that the extra attributes are used to compare
> moduleRevisionId, and I fear that might bring some problem.  Does it?


>  And
> is it normal to use the extra attributes in this comparison?

I think so, many time people use extra attributes in the info tag to add
extra identification attributes. I don't really think putty meta information
such as the dependency management information in extra attributes is a good
fit. But I like the idea of keeping data from dependency management section.
Maybe a good way to do it would be to add a Map of properties to the module
descriptor. This would be another area of flexibility for Ivy users, and I'd
even see usage for Ivy files, if we actually make them usable as properties
in the Ivy file. Something like:
<ivy-module version="2.0">
  <info org="foo" name="bar" />
  <property name="foo.baz.revision" value="1.0.4" />
    <dependency org="foo" name="baz-api" rev="${foo.baz.revision}" />
    <dependency org="foo" name="baz-main" rev="${foo.baz.revision}" />
    <dependency org="foo" name="baz-other" rev="${foo.baz.revision}" />



> --
> Gilles Scokart

Xavier Hanin - Independent Java Consultant

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