I am using Eclipse 3.0. I create a new java project. I find the Eclipse give me .classpath file. If I want to build Ant build file, how can I set property name to include that ".classpath" into my Ant file classpath?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
I would say that the other way around is the correct one ;-) (I mean creating the .classpath out of the ant build). Why this? Ant is more spread and it is not recommended to require all the developers to use Eclipse.
Originally posted by Jeanne Boyarsky: Ali, But many companies have a standard IDE. If you are using a standard IDE, it is easier to maintain the code in the IDE and just let ant do builds/integration checks.
Yep I know that. But still, Ant is a standard (and it has more chances to remain)!. An IDE adoption may change sooner or later.
Originally posted by Edward Chen: I am using Eclipse 3.0. I create a new java project. I find the Eclipse give me .classpath file. If I want to build Ant build file, how can I set property name to include that ".classpath" into my Ant file classpath?
I like Eclipse more and more.
.classpath file of eclipse project is has format data like XML file, So, i think, you can not refer to this file from ant.(build.xml).
But you can config data in build.xml to refer to all librarys in .classpath file like this ::