Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-1321

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.5.0-rc1
    • Component/s: Core
    • Labels:
      None
    • Environment:

      All environments

      Description

      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?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                maartenc Maarten Coene
                Reporter:
                grog Greg Perry
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: