Features
- Provides a Java API to:
- Start containers
- Stop containers
- Configure containers for deployment in any user-specified directory
- Wait for containers to be started
- Wait for containers to be stopped
- Supports WAR and EAR static deployments
- Provides Ant tasks that wraps the Java API.
Container container = new Resin3xContainer();Visit the Cargo home page
container.setHomeDir("c:/apps/resin-3.0.8");
container.setWorkingDir("target/resin3x");
Deployable deployable = new WAR("src/testinput/simple.war");
container.addDeployable(deployable);
container.start();
// At this point you are assured the container is started.
container.stop();
// At this point you are assured the container is stopped.