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 5241] - JUnit task appears to be started before Javac has ended
Date Mon, 17 Dec 2001 09:00:13 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5241>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5241

JUnit task appears to be started before Javac has ended





------- Additional Comments From Gorowitch@yahoo.com  2001-12-17 01:00 -------
Here's a target scetch that should help to reconstruct the problem. Always start 
from a clean build to test this. This works when run twice !!!

<target name="mytarget" depends="init">
  <sequential>
    <!--
      The command below also compiles the source mypackage.AllTests.java 
    -->
    <javac srcdir="${src}" destdir="${build}" 
includes="mypackage/${sourcefiles}"/>
	
    <junit haltonfailure="yes" fork="no">
      <formatter type="xml" />
      <test name="mypackage.AllTests" todir="${testresult}"/>
    </junit>
  </sequential>
</target>

Note: Putting fork to yes and setting the classpath explicitly seems to solve 
the problem.

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message