DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42378>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42378

           Summary: <java> task timeout  occurence returns 0 as
                    resultproperty
           Product: Ant
           Version: 1.6.5
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: [EMAIL PROTECTED]
 BugsThisDependsOn: 32853


Overview:
If the <java> task is used with fork="true", failonerror="false", timeout and
resultproperty, a timeout occurence will return a resultproperty of value 0.
Whereas it should return a non-zero value as the process failed. 

Example:
<java classpath="${studio.dir}/startup.jar"
      classname="org.eclipse.core.launcher.Main"
      fork="true"
      failonerror="false"
      timeout="3000"
      resultproperty="result"
      >
            <sysproperty key="wtp.autotest.noninteractive" value="true"/> 
            <arg value="-product" />
            <arg value="org.eclipse.buckminster.cmdline.product" />
            <arg value="--displaystacktrace" />
            <arg value="--scriptfile" />
            <arg value="${script.current}" />
</java>

Actual Output:
Timeout: killed the sub-process
StackTrace (see bug 32853 for Stacktrace information)
result = 0

Expected Output:
Timeout: killed the sub-process
result = <any number different from 0>

Workaround:
Usage of the <exec> task to start java is possible and returns the expected 
output.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to