ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: AW: AW: AW: AW: how to exec with a set of files as multiple arguments?
Date Fri, 17 Feb 2006 16:21:07 GMT
>> Really sure? Or is this invoked one _after_ the other?
>
>Pretty sure that is how apply-parallel works.  The snippet 
>below is !parallel... :)

mmh .... :)
Ok, something to lern more ...

I think Ant will create a new process for each.
  5 arguments + parallel=true:  5 processes running parallel
  5 arguments + parallel=false
    create process
    start process
    wait for process
    create 2nd process
    ...
    wait for 5th process


Jan


    ExecuteOn.runParallel(...) {
        ...
        while (stillToDo > 0) {
                String[] command = getCommandline(cs, cb);
                exe.setCommandline(command);
                ...
                runExecute(exe);
                stillToDo -= currentAmount;
        }         
    }


    ExecTask.runExecute(Execute exe) {
        if (!spawn) {
            returnCode = exe.execute();
        } else {
            exe.spawn();
        }
    }    


    Execute.execute() {
        final Process process = launch(...);
        ...
        waitFor(process);  // process.waitFor();
        ...
    }


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


Mime
View raw message