|
|
|
@@ -630,16 +630,24 @@ |
|
|
|
|
|
|
|
<target name="testDoesntWaitForChildren" |
|
|
|
description="https://issues.apache.org/bugzilla/show_bug.cgi?id=5003"> |
|
|
|
<condition property="java" |
|
|
|
value="${java.home}/bin/javaw.exe" |
|
|
|
else="${java.home}/bin/java"> |
|
|
|
<os family="dos"/> |
|
|
|
</condition> |
|
|
|
<mkdir dir="${input}/org/example"/> |
|
|
|
<pathconvert dirsep="/" property="out"> |
|
|
|
<path location="${output}"/> |
|
|
|
</pathconvert> |
|
|
|
<pathconvert dirsep="/" property="javaP"> |
|
|
|
<path location="${java}"/> |
|
|
|
</pathconvert> |
|
|
|
<echo file="${input}/org/example/CallHello.java"><![CDATA[ |
|
|
|
package org.example; |
|
|
|
public class CallHello { |
|
|
|
public static void main(String[] args) |
|
|
|
throws Exception { |
|
|
|
Runtime.getRuntime().exec("java -cp ${out} org.example.Hello"); |
|
|
|
Runtime.getRuntime().exec("${javaP} -cp ${out} org.example.Hello"); |
|
|
|
Thread.sleep(1 * 1000); |
|
|
|
System.out.println("finished"); |
|
|
|
} |
|
|
|
@@ -658,7 +666,7 @@ public class Hello { |
|
|
|
}]]></echo> |
|
|
|
<mkdir dir="${output}"/> |
|
|
|
<javac srcdir="${input}" destdir="${output}"/> |
|
|
|
<exec executable="java" failonerror="true"> |
|
|
|
<exec executable="${java}" failonerror="true"> |
|
|
|
<arg line="-cp ${output} org.example.CallHello"/> |
|
|
|
</exec> |
|
|
|
<au:assertLogContains text="finished"/> |
|
|
|
|