DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4398>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4398

org.apache.tools.ant.Main's start method calls System.exit(0)





------- Additional Comments From [EMAIL PROTECTED]  2003-04-30 21:18 -------
you should make a download of the sources of ant, and have a look at the way 
JUnit testcases are done in ant. The Main class is not used.
Look for instance at the base class of most test cases 
src/testcases/org/apache/tools/ant/BuildFileTest.java which you can see under
http://cvs.apache.
org/viewcvs/ant/src/testcases/org/apache/tools/ant/BuildFileTest.java?rev=1.
22&content-type=text/vnd.viewcvs-markup
If you look for instance at this one : http://cvs.apache.
org/viewcvs/ant/src/testcases/org/apache/tools/ant/taskdefs/ZipTest.java?
rev=HEAD&content-type=text/vnd.viewcvs-markup you will see how it is used 
concretely. There is a corresponding build file called zip.xml under 
src/etc/testcases/taskdefs/zip.xml (http://cvs.apache.
org/viewcvs/ant/src/etc/testcases/taskdefs/zip.xml?
rev=HEAD&content-type=text/vnd.viewcvs-markup).
Finally if you look at the build.xml of ant, you will see how the test cases 
are 
run.

Reply via email to