Hi, I'm trying to use junittask with fork mode on, on a project with ant dependencies. So I set includeantruntime to false and fork to true but I have conflicts.
I'm working with java 1.6.0_10 and ant 1.7.1 and I'm getting the following output: [junit] WARNING: multiple versions of ant detected in path for junit [junit] jar:file:/usr/local/ant/lib/ant.jar!/org/apache/tools/ant/Project.class [junit] and jar:file:/home/metcox/dev/workspace/junitTaskTest/lib/ant-1.6.5.jar!/org/apache/tools/ant/Project.class [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0,001 sec [junit] Running MainTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec [junit] Test MainTest FAILED (crashed) If I understand correctly, the test crashed because there are both ant 1.6.5 and 1.7.1 jars in the classpath but 1.7.1 jars shouldn't be here I have no crash if the project have ant 1.7 dependencies but I still have the warning. Does includeantruntime attribute work properly or did I misuse it? a simple build.xml to reproduce this issue: <?xml version="1.0" encoding="UTF-8"?> <project name="project" default="default"> <target name="default" depends="clean, compile-test"> <junit fork="true" includeantruntime="false" printsummary="yes"> <classpath> <pathelement path="${basedir}/bin" /> <pathelement location="${basedir}/lib/junit-4.2.jar" /> <pathelement location="${basedir}/lib/ant-1.6.5.jar" /> <pathelement location="${basedir}/lib/ant-junit-1.6.5.jar" /> <pathelement location="${basedir}/lib/ant-launcher-1.6.5.jar" /> </classpath> <test name="MainTest" /> </junit> </target> <target name="compile-test"> <mkdir dir="${basedir}/bin" /> <javac srcdir="${basedir}/src" destdir="${basedir}/bin" fork="true" includeantruntime="false"> <classpath> <pathelement location="${basedir}/lib/junit-4.2.jar" /> </classpath> </javac> </target> <target name="clean"> <delete> <fileset dir="${basedir}/bin" /> </delete> </target> </project> Regards, Mathieu --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org