You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Ivan Volkov (JIRA)" <ji...@apache.org> on 2012/04/26 13:25:17 UTC

[jira] [Commented] (IVY-1321) Heavy Handed System.exit(0) in Main.main(String[] args) precluded using Ivy as an embedded standalone

    [ https://issues.apache.org/jira/browse/IVY-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13262528#comment-13262528 ] 

Ivan Volkov commented on IVY-1321:
----------------------------------

I don't agree. I don't need more control, I need exactly what the Main class does with its very limited features. Does it make any sense to invoke System.exit(0) in the very end of the 'main' method at all? Why I need a launcher, if I cannot 'launch' any durable application with it without special tricks?
                
> Heavy Handed System.exit(0) in Main.main(String[] args) precluded using Ivy as an embedded standalone
> -----------------------------------------------------------------------------------------------------
>
>                 Key: IVY-1321
>                 URL: https://issues.apache.org/jira/browse/IVY-1321
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.2.0
>         Environment: All environments
>            Reporter: Greg Perry
>            Assignee: Maarten Coene
>
> Someone (myself :)) was interested in running Ivy as an embedded dependency manager.  Being relatively new to Ivy I read some of the documentation regarding the standalone mode where Ivy is called with a variety of command line options.  I would have liked to run ivy as an embedded application but found when I called org.apache.Ivy.Main.main with the appropriate command line options everything ran, however, it closed my application since there is a System.exit(0).
> Is System.exit the appropriate way to do thread management?
> Would it be possible to remove this line - and possibly return 0 without the exit call?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira