Skip to content

Commit

Permalink
updated script
Browse files Browse the repository at this point in the history
  • Loading branch information
fehguy committed Jan 1, 2014
1 parent 7b2658b commit 6749663
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions bin/server.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1 @@
#!/bin/bash
echo "" > classpath.txt
for file in `ls target/lib/*.jar`;
do echo -n '' >> classpath.txt;
echo -n $file >> classpath.txt;
echo -n ':' >> classpath.txt;
done
for file in `ls target/*.jar`;
do echo -n '' >> classpath.txt;
echo -n $file >> classpath.txt;
echo -n ':' >> classpath.txt;
done
export CLASSPATH=$(cat classpath.txt)
export JAVA_OPTS="${JAVA_OPTS} -DXmx4096M"

scala $WORDNIK_OPTS -cp $CLASSPATH "$@" src/main/scripts/ScalatraServerGenerator.scala -DfileMap=src/main/templates/spec-files
cp -r src/main/templates/scalatra/admin server/src/main/webapp/admin
scala -cp swagger-codegen.jar -DfileMap=src/main/specs/api-docs src/main/scala/ScalatraServerGenerator.scala http://localhost:8080

0 comments on commit 6749663

Please sign in to comment.