I did my junit / junitreport stuff this way:
<!-- junittest -->
<target name="junittest" depends="init">
<junit printsummary ="on"
fork ="yes"
haltonerror ="off"
haltonfailure="off"
filtertrace ="off">
<classpath>
<fileset dir="${dir.common.lib}">
<patternset refid="pset.all.jar.rec"/>
</fileset>
<fileset dir="${dir.jboss.client}">
<patternset refid="pset.all.jar.rec"/>
</fileset>
<pathelement location="${dir.project.dst}"/>
</classpath>
<formatter type="xml"/>
<test name="de.xxx.yyy.JUnitTestAll"
todir="${dir.project.log}">
</test>
</junit>
</target> <!-- junitreport -->
<target name="junitreport" depends="junittest">
<junitreport todir="${dir.project.log}">
<fileset dir="${dir.project.log}">
<include name="TEST-*.xml"/>
</fileset>
<report todir ="${dir.project.log}"
format ="noframes"
styledir="${basedir}/xsl"/>
</junitreport>
<exec executable="c:/Program Files/xxx/yyy/netscape/netscp.exe">
<arg line="file:///D:/data/xxx.yyy/log/junit-noframes.html"/>
</exec>
</target>where pset.all.jar.rec is defined as
<patternset id="pset.all.jar.rec">
<include name="**/*.jar"/>
</patternset>If used as above this includes all jar files in a directory and all of it's subdirectories.
Harkness, David wrote: zip
One thing I haven't been able to figure out is how to do the same thingzip
for the <junit> and <junitreport> tasks. Since those tasks are already
defined, I can't give them a new classpath to include junit.jar,
crimson.jar, and xalan-j.jar. Thus, all those have to go either in my
ant/lib or on the CLASSPATH. Has anyone else found a way around this?
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
