Manage duplicate jar files using ant and ivy.

Posted by lawardy on Stack Overflow See other posts from Stack Overflow or by lawardy
Published on 2011-02-13T08:23:06Z Indexed on 2011/02/13 15:25 UTC
Read the original article Hit count: 205

Filed under:
|
|

HI,

I am using ant build script to build my java app and utilizing Ivy to manage its dependency.

As my application is dependent/subset of other application(Main App), when running it, I set the classpath to point to lib jars of the Main App.

As I tried to build the kit using ant and ivy, it includes/retrieve all the jars that is required as specified in ivy.xml

The problem is, some of the jar files are duplicated with with jars file in the main app folders.

Is there a way to set the classpath in build.xml to ignore retrieving jar files that already exist in the main app's lib folder.

Thanks

© Stack Overflow or respective owner

Related posts about java

Related posts about ant