Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 26 lines (20 sloc) 0.606 kB
#!/bin/sh
while getopts ":p:" opt; do
case $opt in
p)
export PROJECT="$OPTARG"
;;
esac
done
if [ -z "$PROJECT" ]; then
PROJECT="."
fi
if [ ! -f "$PROJECT/pom.xml" ]; then
echo "Error: project argument must be valid Maven project (contain pom.xml)"
exit 2
fi
if [ ! -d "$PROJECT/target/classes" -o ! -d "$PROJECT/target/dependency" ]; then
mvn -f "$PROJECT/pom.xml" compiler:compile dependency:unpack-dependencies -DexcludeTypes=pom
fi
TARGET=$(dirname $0)"/target"
java -jar $TARGET/cdk-cmdline-generator.jar -t "src/main/templates/**/*.xml" -t "src/main/java/**/*.template.xml" $*
Jump to Line
Something went wrong with that request. Please try again.