added static doc script

This commit is contained in:
Tony Tam 2013-02-22 18:23:27 -08:00
parent 64ffd7be36
commit 828607c67b

6
bin/static-docs.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export CLASSPATH="$DIR/../target/lib/*:$DIR/../target/*"
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties -DfileMap=src/test/resources/petstore"
JAVA_OPTS=$JAVA_OPTS scala -cp $CLASSPATH "$@" src/main/scala/com/wordnik/swagger/codegen/SwaggerDocGenerator.scala http://petstore.swagger.wordnik.com/api/api-docs.json special-key