Problem making ant compile my classes present in different Eclipse projects into single destination

Posted by KCore on Stack Overflow See other posts from Stack Overflow or by KCore
Published on 2010-03-06T13:09:09Z Indexed on 2010/03/30 6:33 UTC
Read the original article Hit count: 317

Filed under:
|
|

I have close to about 20 projects in my Eclipse workspace. They are interdependent. Now I want to build all of them in a single war file. The thing is eclipse does it nicely... if I create a Dynamic Web Project and link sources of all the 20 projects. But I want to automate the entire process and want to be able to run a script (ant maybe..) and deploy a war in my app server.

My approach: I started with a simple approach. I tried to sequentially build each project (javac task) with destination directory as web-inf of my war. But it is giving me weird errors like : package " ** " not found,when it shows the same all the required classes in classpath (I used verbose)

Do you think, a continous integration engine will be better for my case (20 projects..) I saw Team City, but didnt get it the first time...

© Stack Overflow or respective owner

Related posts about java

Related posts about ant