You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2004/08/05 22:09:24 UTC

DO NOT REPLY [Bug 30501] New: - Main.startAnt calls System.exit when finished

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=30501

Main.startAnt calls System.exit when finished

           Summary: Main.startAnt calls System.exit when finished
           Product: Ant
           Version: 1.6.2
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: epoulin@yahoo.com


When calling ANT from an external Java process, I use the following:

Main m = new Main();
m.startAnt(args, null, null);

However, at the end of startAnt(), there is a System.exit(), whic closes my 
whole JVM (including my external Java process).  I want to be able to call ANT, 
have it finish and then continue on with my Java process.  
ANT should not need a System.exit().  It can simply return control to the 
caller (be it a java process or the system environment).

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org