Hi Vincent and others,
I am trying to move the cactus maven plugin to use cargo with the first
attempt on cactus:test-war . The patch is attached in jira. The error
caused from the following block of code in the plugin.jelly file:

<goal name="cactus:test-war ...>
...
<!-- Do scan -->
...
<!-- Start up container -->

<ant:cargo id="$containerId" action="start" ...>
...

</ant:cargo>

<!-- Do test -->

...

<!-- Stop the container -->

<ant:cargo refid="$containerId" action="stop" ...>

...
</ant:cargo>
</goal>

I cannot stop the container, the error was  the refid in the <ant:cargo
...action="stop"> points to a CargoTask reference (should point to a
container ref instead). 

I would like to hear some suggestions from you to get over this. The error
seems to me that maven could not resolve the reference added by java anttask
(the CargoTask class adds a reference into the Project class).

I tried to put the above block into different tags in jelly but
unsuccessful. Another solution I can think of is to modify CargoTask code to
use a new singleton class to hold list of pairs id and container instead of
using the Project. 

What are your suggestions ?

Thanks
Xuan







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to