ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 42378] New: - <java> task timeout occurence returns 0 as resultproperty
Date Thu, 10 May 2007 13:10:54 GMT
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: matthieu.siggen@gmail.com
 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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message