views:

30

answers:

1

Is there a way for my eclipse project to inherit the build classpath from existing Ant build.xml files? It would be nice if I didn't have to keep the eclipse project and the ant build in sync!

+1  A: 

Off-hand, I'd say no, but see here http://www.ant4eclipse.org/node/6 for an attempt at doing the opposite (keeping the Ant build path in sync with Eclipse). Maybe that's of some use?

ig0774
Thanks but I don't think it's a good idea to have the build system dependent on any particular IDE.
Alex Worden
I tend to agree. That said, the notion of "the classpath" is somewhat nebulous is ant, since you can use different classpaths for different tasks. One recommendation might be to look at Ivy, if you don't mind modifying the build files (Ivy has good integration with both Eclipse and Ant).
ig0774