run_example.sh - AWS Code Sample

This version of the AWS Code Sample Catalog has been replaced by the AWS Code Library, which contains new and updated code examples.

run_example.sh

#!/bin/bash if [[ -z $* ]] ; then echo 'Supply the name of one of the example classes as an argument.' echo 'If there are arguments to the class, put them in quotes after the class name.' exit 1 fi export CLASSPATH=target/aws-s3control-examples-1.0.jar export className=$1 echo "## Running $className..." shift echo "## arguments $@..." mvn exec:java -Dexec.mainClass="aws.example.s3control.$className" -Dexec.args="$@" -Dexec.cleanupDaemonThreads=false