You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ni...@arsoe-trelaze.com on 2003/11/03 14:11:39 UTC
Réf. : MockStrutsTestCase/Maven
In your project.xml include test resources in your classpath by adding :
<build>
...
<unitTest>
<resources>
<resource>
<directory>${basedir}/src/path_to_web-inf</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
</resource>
</resources>
</unitTest>
</build>
Nicolas,
-------
"David Chelimsky" <da...@chelimsky.org>
02/11/2003 19:26
Veuillez répondre à "Maven Users List"
Pour : "Maven Users List" <us...@maven.apache.org>
cc :
Objet : MockStrutsTestCase/Maven
I'm trying to run a MockStrutsTestCase on the client side using Maven.
MockStrutsTestCase requires that the directory that contains WEB-INF be on
the classpath (per http://strutstestcase.sourceforge.net/). This is so it
can find your config files in WEB-INF. In my ant build.xml I was able to
accomplish this by setting up the classpath and including this directory
as
a pathelement. How can I accomplish the equivalent using Maven?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Réf. : MockStrutsTestCase/Maven
Posted by David Chelimsky <da...@chelimsky.org>.
Thanks!
----- Original Message -----
From: <Ni...@arsoe-trelaze.com>
To: "Maven Users List" <us...@maven.apache.org>
Sent: Monday, November 03, 2003 7:11 AM
Subject: Réf. : MockStrutsTestCase/Maven
In your project.xml include test resources in your classpath by adding :
<build>
...
<unitTest>
<resources>
<resource>
<directory>${basedir}/src/path_to_web-inf</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
</resource>
</resources>
</unitTest>
</build>
Nicolas,
-------
"David Chelimsky" <da...@chelimsky.org>
02/11/2003 19:26
Veuillez répondre à "Maven Users List"
Pour : "Maven Users List" <us...@maven.apache.org>
cc :
Objet : MockStrutsTestCase/Maven
I'm trying to run a MockStrutsTestCase on the client side using Maven.
MockStrutsTestCase requires that the directory that contains WEB-INF be on
the classpath (per http://strutstestcase.sourceforge.net/). This is so it
can find your config files in WEB-INF. In my ant build.xml I was able to
accomplish this by setting up the classpath and including this directory
as
a pathelement. How can I accomplish the equivalent using Maven?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org