[
vmassol
]
10:36, Sunday, 1 May 2005
The Cargo team is pleased to announce the release of Cargo 0.5.
The major changes from Cargo 0.4 to 0.5 are:
- New Maven plugin
- Added support for hot deployments
- Added support for the jo! container
Detailed release notes are available on the download page.
Here's an example of how to use Cargo from Java:
Container container = new Resin3xContainer();
container.setHomeDir("c:/apps/resin-3.0.8");
Deployable war = container.getDeployableFactory().createWAR("path/to/simple.war");
container.getConfiguration().addDeployable(war);
container.start();
container.stop();
Here's an example using the provided Ant tasks:
And here's an example using the Maven plugin:
// To run it:
maven cargo:start
// To configure it, add the following in a Maven properties file:
cargo.containers = myTomcat
cargo.container.myTomcat.containerKey = tomcat5x
cargo.container.myTomcat.homeDir = c:/apps/jakarta-tomcat-5.0.30
cargo.container.myTomcat.config.hint = standalone
cargo.container.myTomcat.config.dir = ${maven.build.dir}/myTomcat/config
cargo.container.myTomcat.config.standalone.servlet.port = 8180
Enjoy!
TrackBack