You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ha...@AFSCN.com on 2005/07/02 02:10:34 UTC

Trying to run ANT's JUnit under M(1.0.2)

I'm trying to run a Ant Junit task in my plugin.  When it executes I get: 

	[ERROR] Could not find org.apache.testlet.engine.TextTestEngine

I realize I do not have the class in my dependancy list.  What I do not know
is where to get the jar so I can run the JUnit in the plugin.

The jelly code I'm running is below.  Any suggestions would be very
appreciated.

	<ant:junit printsummary="${junit.print.summary}" 
		   haltonfailure="${junit.halt.onfailure}" 
		   showoutput="${junit.show.output}" 
		   failureproperty="junit.failed" 
		   fork="${junit.fork.run}" 
		   maxmemory="${junit.max.memory}"
	>
		<ant:classpath refid="rulesTestPath"/>
        <util:tokenize var="listOfProperties" delim="
">${junit.system.properties}</util:tokenize>
        <j:forEach var="someProperty" items="${listOfProperties}">
			<sysproperty key="${someProperty}"
value="${context.getVariable(someProperty)}"/>
        </j:forEach>
		<j:if test="${!empty(junit.formater.class)}" >
			<ant:formatter classname="${junit.formater.class}"
extension=".xml"/>
		</j:if>
		<test name="${testUnit}" todir="${junit.reporting.dir}"
outfile="${junit.test.prefix}-${testUnit}-${reportDate}"/>
	</ant:junit>

Bud Curtis
JDIMS Project
L-3 Communications
(719) 637-5633

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org