Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master

JCLOUDS-389: Updated license headers, broken links, and fixed minor w…

…hitespace issues
latest commit f5beea5875
Jeremy Daggett authored everett-toews committed


This example uses the jclouds ComputeService ant plugin to create a new virtual machine (node) and the Cargo plugin to deploy the web application.


Ensure you have Ant 1.7.1 installed and in your path. Ex.


jar -xf

chmod 755 apache-ant-1.7.1/bin/*

export PATH=apache-ant-1.7.1/bin:$PATH

Ensure you have jsch 0.1.42 is in $ANT_HOME/lib. Ex.

cd apache-ant-1.7.1/lib



Deploying to localhost

Invoke 'ant justplaincargo' and this should deploy the webapp to http://localhost:8080/sample

Deploying to the cloud

Invoke 'ant' and supply parameters when asked, or as system properties.

= provider - cloud you want to deploy to (ex. aws-ec2, cloudservers-us)

= identity - your account on the cloud provider (ex. accesskey, username)

= credential - your password on that account (ex. secretkey, password)

= group - what to name the node that runs your webapp (ex. cargo-webapp)

Ex. for Bluelock

ant -Dprovider=bluelock-vcdirector -Dcredential=password -Dgroup=cargo-webapp

Ex. for Amazon EC2

ant -Dprovider=aws-ec2 -Didentity=accesskey -Dcredential=secretkey -Dgroup=cargo-webapp

Note that you should run 'ant destroy' to cleanup cloud nodes after you are finished.


Copyright (C) 2009-2014 The Apache Software Foundation

Licensed under the Apache License, Version 2.0

Something went wrong with that request. Please try again.