ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: running junit from ant
Date Mon, 16 Jan 2006 19:48:47 GMT
On Mon, 16 Jan 2006, Lothar Krenzien <lkrenzien@web.de> wrote:
> 		<fileset dir="${out.dir}/web/WEB-INF/classes">
> 			<include name="**/*.class"/>
> 		</fileset>			

should be <pathelement location="${out.dir}/web/WEB-INF/classes"/> or
otherwise you are placing your classes on the classpath and not the
directory.

> And as I said earlier I tried also using the package name and even
> only the classname as test name.

There is no reason why either should work 8-)

> But I have notified that I have two junit.jars in the above
> classpath. One in the ANT/lib dir (so that Ant knows of the junit
> task) and one in the project classpath (WEB-INF/lib) . Could that
> cause any problems ?

No, at least not as long as both are the same version.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message