I am making progress... I ended up putting in a preGoal for Cactus Test:
<preGoal name="cactus:test">
<copy
todir="${maven.cactus.build.dir}/tomcat4x/webapps/test/WEB-INF/conf"
overwrite="true">
<fileset dir="./src/webapp/WEB-INF/conf">
<include name="**/*.*"/>
</fileset>
<filterset>
<filtersfile
file="./src/conf/environment-dev.properties"/>
</filterset>
</copy>
</preGoal>
I love Jelly's ability to insert my own logic into the build process!
However, I have a utility class to facilitate Turbine Cactus tests called
TurbineTestUtilities in my cactus-tests tree. Cactus keeps trying to find a
runnable test method. I renamed it TurbineUtilities, but the same thing
happens:
Testsuite: com.upstate.turbine.TurbineUtilities
Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.24 sec
Testcase: warning took 0.02 sec
FAILED
Class com.upstate.turbine.TurbineUtilities has no public constructor
TestCase(String name)
junit.framework.AssertionFailedError: Class
com.upstate.turbine.TurbineUtilities has no public constructor
TestCase(String name)
Testcase: warning
Does there need to be some sort of rule that only classes that start with
Test or end with Test? Or is that something we should add into the POM or
as properties?
Eric PUgh
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:EPugh@;upstate.com]
Sent: Thursday, November 07, 2002 8:25 PM
To: [EMAIL PROTECTED]
Subject: One more Issue with Cactus Plugin
I need to set a series of properties. I currently do a war:webapp, and then
as a post goal, replace tokens for environment specific things. However, I
notice that the cactus plugin only calls war:war, which doesn't give me a
chance to edit things..
I tried adding a pregoal on cactus:war to replace the files in the war with
my edited files from my war:webapp, but it seems once the files are in, they
stay in, and can not be replaced. Any ideas?
Would it be possible to point cactus to build a war from an exploded war
directory?
Eric Pugh