ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Calling ivy from a java class/method
Date Tue, 03 Jul 2007 10:04:59 GMT
>> You could refactor the content of main() out:
>>
>>
>> public static void main(String args) {
>>     Main main = new Main();
>>     main.process(args);
>> }
>> public void process(String args) {
>>     // Use CommandLineParser for configuring Main
>>     main.run()
>> }
>> public void run() {
>>     // Ivy's work
>> }
>
>
>What's the use case behind this refactoring? to run multiple 
>times the same Ivy call?


Hhmmm, right.
I suggested that because I havent read your comment right :-)

Jan

> >Another approach is to embed Ivy and call the Main.main(args) method.
It's
> >roughly equivalent to Runtime.getRuntime().exec(comand) except
> >that it runs in the same vm.

Mime
View raw message