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

2018-03-19 Thread twogee
Github user twogee commented on the issue:

https://github.com/apache/ant-ivy/pull/70
  
Actually, you should be able to do

```
try {
ResolveReport  report = Main.run(args, false);
// iterate through the report
} catch (Exception e) {
// do something to handle error
}
```

But, I was hasty and the tests still fail. I'll try to rectify that later 
today.


---

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



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

2018-03-19 Thread supertick
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-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



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

2018-03-19 Thread twogee
Github user twogee commented on the issue:

https://github.com/apache/ant-ivy/pull/70
  
This addresses IVY-1321 and IVY-1578


---

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