AWS Code Sample

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

#!/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/s3examples-1.0.jar export className=$1 echo "## Running $className..." shift echo "## arguments $@..." mvn exec:java -Dexec.mainClass="aws.example.s3.$className" -Dexec.args="$@" -Dexec.cleanupDaemonThreads=false