git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GitHub] ant-ivy issue #70: Make Main.run() usable programmatically


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@xxxxxxxxxxxxxx
For additional commands, e-mail: dev-help@xxxxxxxxxxxxxx




( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-ant-development/msg01684.html on line 100
Call Stack
#TimeMemoryFunctionLocation
10.0008363584{main}( ).../msg01684.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-ant-development/msg01684.html on line 100
Call Stack
#TimeMemoryFunctionLocation
10.0008363584{main}( ).../msg01684.html:0