updated scripts for assembly

This commit is contained in:
Tony Tam
2014-08-27 00:15:26 -07:00
parent 3625b89a15
commit 8c53837802
23 changed files with 47 additions and 47 deletions

View File

@@ -25,8 +25,8 @@ cd $APP_DIR
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="$@ samples/client/petstore/android-java/AndroidJavaPetstoreCodegen.scala http://petstore.swagger.wordnik.com/api/api-docs special-key"
if [ -f $APP_DIR/target/scala-$SCALA_RUNNER_VERSION/swagger-codegen.jar ]; then
scala -cp target/scala-$SCALA_RUNNER_VERSION/swagger-codegen.jar $ags
if [ -f $APP_DIR/target/scala-$SCALA_RUNNER_VERSION/*.jar ]; then
scala -cp target/scala-$SCALA_RUNNER_VERSION/*.jar $ags
else
echo "Please set scalaVersion := \"$SCALA_RUNNER_VERSION\" in build.sbt and run ./sbt assembly"
fi