Great.

If so, maybe it's time to start contributing ivy.xml files to various
open-source projects. For example, I am currently dealing with Codehaus
XFire. They have pom.xml file along with their examples and I had to
download and install Maven in order to use them. Maybe we can initiate a
progress of contributing ivy.xml files for such projects.

(But, ivy alone is not enough. Maven also does the build. Supplying
build.xml may be a much more complicated task. I don't think we can do
automatic pom.xml to ivy.xml + build.xml convertion easily, unless
automatically creation of build.xml from pom.xml (+ the relevant Maven
plugins) is a possible task... I am not sure.)

What do you think?


On 11/15/06, Xavier Hanin <[EMAIL PROTECTED]> wrote:

On 11/15/06, easyproglife <[EMAIL PROTECTED]> wrote:
>
> Hi Xavier.
>
> I am trying to write a simple command line utility to convert POM to
> ivy.xml


There's already such utility as an undocumented ant task:
fr.jayasoft.ivy.ant.IvyConvertPom. Have a look to the code you should
quickly see how to use it.
And note that if you want to convert a bunch of files, you can use the
install task to install everything from a m2 repo to an ivy repo.

- Xavier

.
>
> If you don't have the time to write it yourself, can you instruct me how
> can
> I do so?
>
> I have started with a Java main class that uses "
> fr.jayasoft.ivy.external.m2.PomModuleDescriptorParser".
> I called "parseDescriptor" and got "ModuleDescriptor".
>
> How can I now write it as ivy.xml?
>
>
> (In the future, I think this utility should get a list (regexp?) of POM
> files as a parameter. Later it may be written also as an Ant task.)
>
> Thanks,
> easyproglife.
>
>


Reply via email to