Cargo : Ant support
This page last changed on Feb 19, 2005 by aheritier.
DefinitionCargo provides Ant tasks to perform all the operations available from the Java API ExplanationBefore using the Ant API you need to register the Cargo Ant tasks into Ant. This is done in the following manner: <taskdef resource="cargo.tasks"> <classpath> <pathelement location="${cargo.jar}"/> </classpath> </taskdef> ExampleHere's a full example showing how to deploy a WAR, and expanded WAR and an EAR in an Orion 2.x container. Please note that the output and log attribute are optional. The property elements allow you to tune how the container is configured. Here we're telling it to start on port 8180 and to generate the maximum amount of logs in the container output file. <taskdef resource="cargo.tasks"> <classpath> <pathelement location="path/to/cargo.jar"/> </classpath> </taskdef> <cargo-orion2x homeDir="c:/apps/orion-2.0.3" output="target/output.log" log="target/cargo.log" action="start"> <configuration> <property name="cargo.servlet.port" value="8180"/> <property name="cargo.logging" value="high"/> <war warfile="path/to/my/simple.war"/> <war warfile="path/to/my/expandedwar/simple"/> <ear earfile="path/to/my/simple.ear"/> </configuration> </cargo-orion2x> |
![]() |
Document generated by Confluence on Jul 21, 2005 06:52 |