Return-Path: X-Original-To: apmail-ant-notifications-archive@minotaur.apache.org Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E3C51952E for ; Thu, 26 Apr 2012 11:25:38 +0000 (UTC) Received: (qmail 24812 invoked by uid 500); 26 Apr 2012 11:25:38 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 24733 invoked by uid 500); 26 Apr 2012 11:25:38 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 24726 invoked by uid 99); 26 Apr 2012 11:25:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Apr 2012 11:25:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Apr 2012 11:25:37 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 942EA410E0D for ; Thu, 26 Apr 2012 11:25:17 +0000 (UTC) Date: Thu, 26 Apr 2012 11:25:17 +0000 (UTC) From: "Ivan Volkov (JIRA)" To: notifications@ant.apache.org Message-ID: <1820850238.4819.1335439517621.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1288154212.45716.1321662772059.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (IVY-1321) Heavy Handed System.exit(0) in Main.main(String[] args) precluded using Ivy as an embedded standalone MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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