From 429a40d8278fcae257e4b21c0b6adbfe1966f28b Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Fri, 11 Mar 2005 14:56:48 +0000 Subject: [PATCH] stylecheck git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277904 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/ExecuteJava.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/ExecuteJava.java b/src/main/org/apache/tools/ant/taskdefs/ExecuteJava.java index 71ad9817e..25c91e8e5 100644 --- a/src/main/org/apache/tools/ant/taskdefs/ExecuteJava.java +++ b/src/main/org/apache/tools/ant/taskdefs/ExecuteJava.java @@ -108,6 +108,7 @@ public class ExecuteJava implements Runnable, TimeoutObserver { /** * Execute the Java class against the specified Ant Project. * @param project the Project to use. + * @throws BuildException on error. */ public void execute(Project project) throws BuildException { 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 * simple needs. * @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 */ public int fork(ProjectComponent pc) throws BuildException { @@ -266,8 +269,8 @@ public class ExecuteJava implements Runnable, TimeoutObserver { Redirector redirector = new Redirector(pc); Execute exe = new Execute(redirector.createHandler(), - timeout == null - ? null + timeout == null + ? null : new ExecuteWatchdog(timeout.longValue())); exe.setAntRun(pc.getProject()); if (Os.isFamily("openvms")) {