Ensure you have Ant 1.7.1 installed and in your path. Ex.
jar -xf apache-ant-1.7.1-bin.zip
chmod 755 apache-ant-1.7.1/bin/*
Ensure you have jsch 0.1.42 is in $ANT_HOME/lib. Ex.
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 -Didentityfirstname.lastname@example.org -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