ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tjeerd Verhagen" <tjeerd.verha...@gmail.com>
Subject question about: Ivy option 'main'
Date Tue, 26 Jun 2007 14:55:50 GMT
When I would like to make use of Ivy as a classloader for an application
FooMain, which also depends on commons-lang,
it is nessesary that the class org.bar.foo.FooMain, is loaded through the
Ivy process? Or simpler said, that the class needs to ne in a 'jar' which is
loaded through the Ivy process?

java  org.apache.ivy.Main  -dependency apache commons-lang 2.1  -main
org.bar.foo.FooMain

or

java  org.apache.ivy.Main  -main org.bar.foo.FooMain
with a ivy.xml (which contains the reference to apache commons-lang 2.1)

This class 'org.bar.foo.FooMain', must be on the classpath loaded through
Ivy!

And not on the normal java classapth like:
java  -cp foo.jar  org.apache.ivy.Main  -dependency apache commons-lang 2.1
-main org.bar.foo.FooMain


Regards, Tjeerd

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