<alert type="newbie">Help!</alert>
I'm trying to install Cactus for the first time. I've got my test cases
written, and I'm using Ant to stop/start a local tomcat instance. So
far, so good. My Tomcat instance runs, and I can use a browser to
invoke the test suite and verify the results. So I'm pretty sure that
I've got Tomcat configured correctly, and am writing a test case correctly.
Now I'm trying to use Ant <junit> task to actually invoke the test
cases. What I'm seeing, though, is that the tasks invoked by the
"runservertest" task do not inherit classpaths from the calling target
(though they inherit properties). Is that expected?
My build file (with major snipping) looks sort-of-like:
<project>
<target name="load-properties">
<xmlproperty file="properties.xml"/>
<path id="test.classpath">
<pathelement location="something"/>
</path>
</target>
<target name="cactus" depends="load-properties">
<runservertests testURL="${url}"
startTarget="start-tomcat"
testTarget="run-cactus-tests"
stopTarget="stop-tomcat"/>
</target>
<target name="start-tomcat">
</target>
<target name="stop-tomcat">
</target>
<target name="run-cactus-tests">
<junit>
<!-- ** HERE'S THE PROBLEM ** -->
<classpath refid="test.classpath"/>
</junit>
</target>
</project>
The run-cactus-tests target has access to all of the properties defined
by the load-properties task, but does *not* have the test.classpath
path. I can work around this by adding a dependency to the
run-cactus-tests, but I am curious if I have something configured
incorrectly.
Thanks for any help,
Paul Christmann
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
- RE: Ant Classpath References Paul Christmann
- RE: Ant Classpath References Vincent Massol
- Ant Classpath References Paul Christmann
