ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From supertick <...@git.apache.org>
Subject [GitHub] ant-ivy issue #69: 2.4.x
Date Tue, 20 Mar 2018 03:42:50 GMT
Github user supertick commented on the issue:

    https://github.com/apache/ant-ivy/pull/69
  
    I think it would be great "not" to have an additional CLI option, but then you cannot
have a System.exit(1) terminating the client code (https://github.com/apache/ant-ivy/blob/2.4.x/src/java/org/apache/ivy/Main.java#L313)
just because of an error.
    
    The errors (and the successes) can be queried out of the ResolveReport.  A client can
programmatically make decisions based on the data returned. And the run() methods still throw
their respective exceptions which could be caught by the client consumer. 
    
    The new option is to alleviate the problematic design of having an error terminate a client
consumer  with a System.exit.
    
    Perhaps a design would be to copy/paste Main.java to IvyClient.java and remove the System.exit
- but then it would be less normalized, which has its own flaws.


---

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


Mime
View raw message