On 5/4/07, Maarten Coene <[EMAIL PROTECTED]> wrote:
Hi,
one of the things that bothers me since long is the dependency on an external
ivy.jar when trying to build ivy using Ant.
As discussed some time ago on this list, there is a solution for this problem:
step 1: compile "Ivy Core": these classes are the core of Ivy which doesn't has
any external dependency.
step 2: compile "Ivy Ant": these classes are the Ant tasks. They have 2 dependencies:
"Ivy Core" and Ant itself.
step 3: use the classes from step1 and step2 to resolve the ivy.xml file from
Ivy
step 4: also download the jars to the lib directory
step 5: compile "Ivy Optional": these classes are extensions of Ivy and may
required 3th-party libraries. These 3th-party libraries have been downloaded in the
previous step.
step 6: create ivy.jar (containing everything) and ivy-core.jar (containing only
"Ivy Core").
I tried it out and it seems to work well.
Do you think this is ok? If no-one objects, I'll try to commit my changes this
weekend. I didn't had to change much: only 2 source files and of course the Ant
build files.
This seems like a very good thing to me. The only point is about the
packaging, ivy-core used to caintain everything but ant related
classes, and I think we should keep an artifact like this one, which
is used at least in IvyDE.
But this is a minor thing that can be fixed later.
Xavier
--
Maarten
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
Learn Ivy at ApacheCon: http://www.eu.apachecon.com/
Manage your dependencies with Ivy!
http://incubator.apache.org/ivy/