>> 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.