Unable To Get Started With Ant Task
neilac333 Jul 7, 2008 6:09 PMI am new to JSFUnit and just trying to get the Ant task to bundle the right kind of war file. Unfortunately, I get this error:
Automatically adding JSFunit required jars to the new war Could not find the JSFUnit jar in the classpath. Cannot automatically add this jar to the war Could not find the AspectJ jar in the classpath. Cannot automatically add this jar to the war Could not find the Cactus jar in the classpath. Cannot automatically add this jar to the war Could not find the HttpUnit jar in the classpath. Cannot automatically add this jar to the war Could not find the JUnit jar in the classpath. Cannot automatically add this jar to the war Could not find the NekoHTML jar in the classpath. Cannot automatically add this jar to the war Could not find the JTidy jar in the classpath. Cannot automatically add this jar to the war
Here is the relevant portion of my build file:
<property name="jsfunit.ant.jar" location="${jsfunit.lib.dir}/jboss-jsfunit-ant-1.0.0.Beta2.jar"/> <property name="aspectjrt.jar" location="${jsfunit.lib.dir}/aspectjrt-1.2.1.jar"/> <property name="jsfunit.jar" location="${jsfunit.lib.dir}/jboss-jsfunit-core-1.0.0.Beta2.jar"/> <property name="cactus.jar" location="${jsfunit.lib.dir}/cactus-13-1.7.1.jar"/> <property name="cactus.ant.jar" location="${jsfunit.lib.dir}/cactus-13-1.7.1.jar"/> <property name="httpunit.jar" location="${jsfunit.lib.dir}/httpunit-1.6.1.jar"/> <property name="junit.jar" location="${jsfunit.lib.dir}/junit-3.8.1.jar"/> <property name="jtidy.jar" location="${jsfunit.lib.dir}/jtidy-4aug2000r7-dev.jar"/> <property name="cargo.jar" location="${jsfunit.lib.dir}/cargo-core-uberjar-0.9.jar"/> <path id="jsfunit.class.path.libs"> <fileset dir="${jsfunit.lib.dir}"> <include name="*.jar"/> </fileset> </path> <target name="build-jsfunit-war"> <ant antfile="build-war.xml" target="war-for-dev"/> <jsfunitwar srcfile="${dist.dir}/srm.war" destfile="${dist.dir}/srm-jsfunit.war"> <!--<TestRunner/>--> </jsfunitwar> </target>
The directory jsfunit.lib.dir does indeed point to the right location. As you can see, I have even commented out the TestRunner task. What does that do anyway?
Any insight into the issue is much appreciated.
Thanks.