On 4/15/06, Felipe Leme <[EMAIL PROTECTED]> wrote:
> - now add one (or more) container's property on $HOME/build.properties
> (for instance, cactus.home.jboss4x=/usr/local/java/jboss-4.0.3RC2), go
> to the samples/ejb or samples/servlet and run 'ant dist'
> - if the tests didn't work, try to figure it out why (and fix it :-);
Jira is down, but it's only a couple of lines... see patch below.
This fixes the deprecation warning for using 'dir' instead of 'home',
and then wait="false" tells Cargo not to pause.
Index: samples/servlet/src/scripts/share/build.xml
===================================================================
--- samples/servlet/src/scripts/share/build.xml (revision 394571)
+++ samples/servlet/src/scripts/share/build.xml (working copy)
@@ -332,8 +332,9 @@
<cargo id="@{containerKey}" containerId="@{containerKey}" action="start"
home="[EMAIL PROTECTED]"
log="${target.dir}/@{containerKey}/cargo_start.log"
- output="${target.dir}/@{containerKey}/container_start.log">
- <configuration dir="${target.dir}/@{containerKey}/config">
+ output="${target.dir}/@{containerKey}/container_start.log"
+ wait="false">
+ <configuration home="${target.dir}/@{containerKey}/config">
<property name="cargo.servlet.port" value="${cactus.port}"/>
<property name="cargo.servlet.users"
value="${cactus.securitytest.users}"/>
<property name="cargo.logging" value="high"/>
After making that change, I get:
test-container-internal-ok:
[echo] Running tests on tomcat5x container...
Overriding previous definition of reference to tomcat5x
[cactustests] Using default servername=localhost
[cactustests] Testsuite:
org.apache.cactus.sample.servlet.unit.TestBasicAuthentication
[cactustests] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.485 sec
...
[cactustests] Null Test: Caused an ERROR
[cactustests] com/gargoylesoftware/htmlunit/WebResponse
[cactustests] java.lang.NoClassDefFoundError:
com/gargoylesoftware/htmlunit/WebResponse
I have no idea where to add dependencies to this incredibly complex
Ant build. :) But I think this gets past the issue with Cargo, so you
can continue on.
HTH,
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]