SIGN IN SIGN UP

Welcome to the AWS Code Examples Repository. This repo contains code examples used in the AWS documentation, AWS SDK Developer Guides, and more. For more information, see the Readme.md file below.

0 0 0 Java
2017-05-22 12:42:16 -07:00
#!/bin/bash
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
2017-05-22 12:42:16 -07:00
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.'
2017-05-22 12:42:16 -07:00
exit 1
fi
export CLASSPATH=target/aws-glacier-examples-1.0.jar
export className=$1
echo "## Running $className..."
shift
echo "## arguments $@..."
mvn exec:java -Dexec.mainClass="aws.example.glacier.$className" -Dexec.args="$@" -Dexec.cleanupDaemonThreads=false