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 #70: Make Main.run() usable programmatically
Date Tue, 20 Mar 2018 04:15:40 GMT
Github user supertick commented on the issue:

    https://github.com/apache/ant-ivy/pull/70
  
    I agree @twogee  now that I've seen your change, your solution would be better.  
    I felt too,  adding a new command line option was not the best, but also felt strongly,
with minimal work the standalone interface could be supported.  I'm glad your change supports
the interface without the additional option.
    
    Now perhaps these https://www.google.com/search?q=ivy+programmatic+stackoverflow 
    can be answered simply with 
    
    ```
    try {
        CommandLineParser parser = getParser();
        // parse the command line arguments	  
        CommandLine line = parser.parse(args);	         
        ResolveReport  report = Main.run(line, false);
        // iterate through the report
    } catch (Exception e) {
        // do something to handle error
    }
    ```
    
    Thanks.


---

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


Mime
View raw message