Completed changes related running test scripts

This commit is contained in:
rpidikiti
2011-08-09 14:30:13 -07:00
parent 31a2ef5ddb
commit 8347fa3a37
11 changed files with 248 additions and 30 deletions

View File

@@ -1,4 +1,11 @@
#!/bin/bash
if [ $# -ne 4 ]
then
echo "Error in $0 - Invalid Argument Count"
echo "Syntax: $0 location_of_service api_key package_name library_root"
exit
fi
echo "" > classpath.txt
for file in `ls lib`;
do echo -n 'lib/' >> classpath.txt;
@@ -12,5 +19,5 @@ for file in `ls build`;
done
export CLASSPATH=$(cat classpath.txt):conf/java/templates
export JAVA_OPTS="${JAVA_OPTS} -DrulePath=data -Dproperty=Xmx2g -DloggerPath=$BUILD_COMMON/test-config/log4j.properties"
export JAVA_OPTS="${JAVA_OPTS} -Dproperty=Xmx2g"
java $WORDNIK_OPTS $JAVA_CONFIG_OPTIONS $JAVA_OPTS -cp $CLASSPATH com.wordnik.swagger.codegen.config.java.JavaLibCodeGen "$@"