I'm running quilt 6a and have hooked up the quilt taskdev into my build
script. However I get problems loading up a xml file my tests rely on.
These are located in a config directory.
Within my script I define a refid for the classpath (test.classpath) and
reference this throughout the script. The basic unit tests pick up the
classpath file and when I print out the classpath locations all looks
good.
When I run quilt the only classpath it picks up is the ANT_HOME/lib
directory and all jar files in there. As far as I can tell quilt is not picking
up the classpath element defined within the taskdef element. Here is
my definition:
<!-- setup for Quilt Code Coverage Report -->
<property name="quilt.jar" value="quilt-0.6-a-1.jar"/>
<taskdef name="quilt" classname="org.quilt.frontend.ant.QuiltTask"
classpath="lib/${quilt.jar}"/>
<target name="quilt" depends="compile">
<quilt haltonerror="false" checkCoverage="true">
<classpath refid="test.classpath"/>
<batchtest todir="${test.reports}" >
<fileset dir="src/test-src">
<include name="**/*Test.java" />
</fileset>
</batchtest>
<formatter type="brief" usefile="false"/>
<jvmarg value="-Dlog4j.configuration=./config/log4j.conf"/>
</quilt>
</target>
<!-- setup the test classpath -->
<path id="test.classpath">
<pathelement location="."/>
<pathelement location="./src/test-src"/>
<pathelement location="./src/java-src"/>
<pathelement location="./src/test-src/config"/>
<pathelement location="${log4j}"/>
<pathelement location="${junit}"/>
<pathelement location="${ant-junit}"/>
<fileset dir="./lib">
<include name="**.*.jar"/>
</fileset>
</path>