[Webtest] [dev] Cargo

Marc Guillemot webtest@lists.canoo.com
Thu, 23 Sep 2004 10:35:45 +0200

as long as cargo doesn't provide a cross over task to start / stop / deploy / undeploy a webapp, you need to have build 
scripts deploy_XXXX.xml and from the main build.xml you will call something like:

         <ant antfile="${servletcontainer_deploy_script}" target="deploy">
             <property name="webapp.dir" value="${selftest.server.webapp.dir}"/>
             <property name="webapp.name" value="selftest"/>
             <property name="webapp.context" value="${selftest.context}"/>

Do you remember?

As already said, I've nothing special against Jetty except that I think it doesn't belong to webtest (should we but a 
JDK in webtest too ;-)).

As your discussion with Denis was private, I can't see the advantage of the new solution and only see the problems it 


Dierk Koenig wrote:
> I'd like to achieve
> - start/stop a self-contained server (jetty)
> - allow usage of other containers (tomcat), especially for your convenience
> :-)
> - minimize custom-made logic for the above
>>-----Original Message-----
> ..
>>Cargo has different ant tasks for different containers,
> yes. I think this is a downside of Cargo. They should put it in an
> attribute.
>>this mean
>>that you need to have different ant scripts / targets
>>according to the container you use.
> Hm, not sure. There may be ways of dynamic invocation but for the price of
> clarity (and that's what we are trying to achieve in the end).
>>In this case I don't see (in
>>a first time) the difference with the approach I
>>proposed a few months ago which allowed exactly the same except
>>that no additional cargo lib (Tomcat already has ant
>>tasks that do the job) was needed.
> No difference in functionality.
> But all containers can use the same logic for the start/stop/config.
> Maybe this benefit doesn't pull the weight of 160k.
> cheers
> Mittie
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest