added 2.9.1 launcher support

This commit is contained in:
Tony Tam
2013-07-09 16:01:34 -07:00
parent fd72c1b9f1
commit 24af6a00c6
19 changed files with 38 additions and 38 deletions

View File

@@ -24,8 +24,8 @@ cd $APP_DIR
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties -DfileMap=samples/client/wordnik-api/spec-files"
ags="$@ SwaggerDocGenerator http://developer.wordnik.com/v4/resources.json"
if [ -f $APP_DIR/target/swagger-codegen.jar ]; then
java -cp target/swagger-codegen.jar $ags
if [ -f $APP_DIR/target/scala-2.9.1/swagger-codegen.jar ]; then
scala -cp target/scala-2.9.1/swagger-codegen.jar $ags
elif [[ -f $APP_DIR/target/scala-2.10/swagger-codegen.jar ]]; then
java -cp target/scala-2.10/swagger-codegen.jar $ags
else