Eclipse and Ant
I've been doing some development in Eclipse, and I'd like to be able to use Ant to build the code outside of Eclipse.
Eclipse keeps track of project information in two files: .project and .classpath. The .classpath file is in XML, and includes the dependent projects and jars needed to compile the code in the project. I'd like to keep the .classpath automatically in sync with the build.xml. Possible solutions:
- Building the .classpath from Ant (using the build.xml or dependent property files)
- Building the build.xml (or dependent property files) from the .classpath
- Creating both from a file in a different file format
Note that I'd like to have multiple projects, and each project could have a compile-time dependency on different projects and different jars. A nice-to-have is building the correct class path to run the application. The likely directory structure would be:
Project1
.classpath
.project
src
com
whatever
test
com
whatever
Project 2
...
Any ideas?
