nested "file" element

83 views
Skip to first unread message

tham.wi...@gmail.com

unread,
Feb 4, 2009, 10:06:05 AM2/4/09
to crap4j-users
Hi, Im trying to use Crap4j but get the following error:

crap_build.xml:40: Class
org.apache.tools.ant.taskdefs.optional.junit.BatchTest doesn't support
the nested "file" element.

The line in question reads:
<super-runner dir="${basedir}" batchSize="5" printsummary="yes"
mergeCoverage="true" haltonfailure="no" resultsDir="$
{project.dir.ejbca}/agitar/.results">

Any suggestions?

Best Regards,
Tham Wickenberg

HoppeJan

unread,
Mar 11, 2009, 7:04:05 AM3/11/09
to crap4j-users
Hi,

we had the sam problem. We solved it by using the copy command and
running Crap4j on the copied tests

<copy todir="${crapbuild}">
<fileset dir="${build}">
<include name="**/*Test.class" />
<include name="**/Test*.class" />
<exclude name="**/*$*.class" />

<exclude name="**/JDFDown*Test*.class" />
<exclude name="**/performance/*.class" />
</fileset>
<fileset dir="/cmpPRT_Common/UserInterface/JUnit/unittests">
<include name="**/*Test*.class"/>
<include name="**/Test*.class"/>
<exclude name="**/DialogFactoryTest.class"/>
<exclude name="**/All*Tests*.class"/>
<exclude name="**/*$*.class"/>
</fileset>
</copy>
Reply all
Reply to author
Forward
0 new messages