Browse Source

stylecheck

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277904 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 20 years ago
parent
commit
429a40d827
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      src/main/org/apache/tools/ant/taskdefs/ExecuteJava.java

+ 5
- 2
src/main/org/apache/tools/ant/taskdefs/ExecuteJava.java View File

@@ -108,6 +108,7 @@ public class ExecuteJava implements Runnable, TimeoutObserver {
/** /**
* Execute the Java class against the specified Ant Project. * Execute the Java class against the specified Ant Project.
* @param project the Project to use. * @param project the Project to use.
* @throws BuildException on error.
*/ */
public void execute(Project project) throws BuildException { public void execute(Project project) throws BuildException {
final String classname = javaCommand.getExecutable(); final String classname = javaCommand.getExecutable();
@@ -248,6 +249,8 @@ public class ExecuteJava implements Runnable, TimeoutObserver {
* the full flexibility of the Java task, but may be enough for * the full flexibility of the Java task, but may be enough for
* simple needs. * simple needs.
* @param pc the ProjectComponent to use for logging, etc. * @param pc the ProjectComponent to use for logging, etc.
* @return the exit status of the subprocess.
* @throws BuildException on error.
* @since Ant 1.6.3 * @since Ant 1.6.3
*/ */
public int fork(ProjectComponent pc) throws BuildException { public int fork(ProjectComponent pc) throws BuildException {
@@ -266,8 +269,8 @@ public class ExecuteJava implements Runnable, TimeoutObserver {
Redirector redirector = new Redirector(pc); Redirector redirector = new Redirector(pc);
Execute exe Execute exe
= new Execute(redirector.createHandler(), = new Execute(redirector.createHandler(),
timeout == null
? null
timeout == null
? null
: new ExecuteWatchdog(timeout.longValue())); : new ExecuteWatchdog(timeout.longValue()));
exe.setAntRun(pc.getProject()); exe.setAntRun(pc.getProject());
if (Os.isFamily("openvms")) { if (Os.isFamily("openvms")) {


Loading…
Cancel
Save