From 3bf486e49d2e4ab4e1b4efb20caf63cd91335c70 Mon Sep 17 00:00:00 2001 From: Tony Tam Date: Wed, 14 Aug 2013 17:19:20 -0700 Subject: [PATCH] updated script --- bin/update-spec.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/update-spec.sh b/bin/update-spec.sh index 6c2537501f8..df444504762 100755 --- a/bin/update-spec.sh +++ b/bin/update-spec.sh @@ -21,15 +21,13 @@ cd $APP_DIR # if you've executed sbt assembly previously it will use that instead. -export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties" ags="com.wordnik.swagger.codegen.SpecConverter $@" if [ -f $APP_DIR/target/scala-2.9.1/swagger-codegen.jar ]; then - java -cp target/scala-2.9.1/swagger-codegen.jar $ags + 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 - ./sbt assembly - java -cp target/swagger-codegen.jar $ags + ./sbt "run-main $ags" fi