Originally posted by Lasse Koskela:
The javadoc for org.apache.tools.ant.Main says the following:
If you integrating Ant into some other tool, this is not the class to use as an entry point. Please see the source code of this class to see how it manipulates the Ant project classes.
So, I guess you should grab the Ant source distribution and see for yourself. From a quick glance, I think this should be enough:
Lasse you have a good point, well spotted, I didn't look at those docs at all, anyhat, you've also overlooked a few things, one is that Main has protected access and also runBuild has private access, lastly I interpret that javadoc to mean dont use this class at all, look at the classes it manipulates, such as Project.
So Anubhuti, you now need to read some source code.