Lines 90-95
public class ExecTask extends Task {
Link Here
|
90 |
private boolean failIfExecFails = true; |
90 |
private boolean failIfExecFails = true; |
91 |
private String executable; |
91 |
private String executable; |
92 |
private boolean resolveExecutable = false; |
92 |
private boolean resolveExecutable = false; |
|
|
93 |
private boolean waitFor = true; |
93 |
|
94 |
|
94 |
private Redirector redirector = new Redirector(this); |
95 |
private Redirector redirector = new Redirector(this); |
95 |
|
96 |
|
Lines 100-105
public class ExecTask extends Task {
Link Here
|
100 |
private boolean vmLauncher = true; |
101 |
private boolean vmLauncher = true; |
101 |
|
102 |
|
102 |
/** |
103 |
/** |
|
|
104 |
* Controls whether or not to wait for the process to finish. |
105 |
* |
106 |
* @Author Charles Hudak <CHudak@arrowheadgrp.com> |
107 |
*/ |
108 |
public void setWaitfor(boolean wait) |
109 |
{ |
110 |
this.waitFor = wait; |
111 |
} |
112 |
|
113 |
/** |
103 |
* Timeout in milliseconds after which the process will be killed. |
114 |
* Timeout in milliseconds after which the process will be killed. |
104 |
* |
115 |
* |
105 |
* @since Ant 1.5 |
116 |
* @since Ant 1.5 |
Lines 388-393
public class ExecTask extends Task {
Link Here
|
388 |
exe.setAntRun(getProject()); |
399 |
exe.setAntRun(getProject()); |
389 |
exe.setWorkingDirectory(dir); |
400 |
exe.setWorkingDirectory(dir); |
390 |
exe.setVMLauncher(vmLauncher); |
401 |
exe.setVMLauncher(vmLauncher); |
|
|
402 |
exe.setWaitfor(this.waitFor); |
403 |
if(this.waitFor){ |
404 |
|
405 |
log("Waiting for process to complete...", Project.MSG_INFO); |
406 |
} |
407 |
else{ |
408 |
|
409 |
log("Spawning process without waiting to complete.", Project.MSG_INFO); |
410 |
} |
411 |
|
391 |
String[] environment = env.getVariables(); |
412 |
String[] environment = env.getVariables(); |
392 |
if (environment != null) { |
413 |
if (environment != null) { |
393 |
for (int i = 0; i < environment.length; i++) { |
414 |
for (int i = 0; i < environment.length; i++) { |