mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 20:50:55 +00:00
* Add property 'supportAsync' to allow the use of CompletionStage of java8 * Add support for completionStage in play-framework templates * Add script to generate samples for play-framework async controllers * Add generated samples for java play framework with asynchronous controllers * Add missing templates and generate samples * Remove useless comments from generated samples in play framework async * Fix ControllerImp template for java play framework * Add script for java play framework async to general script * Regenerate java play framework server samples * Fix missing whitespace * Fix unnecessary blank lines at imports * Fix tabulation issue * Fix tabulation issue in controllers * Remove blanks from api Imp * Remove more empty lines * Add blank between methods * Remove blanks before call to service method * Fix some tabulations in java play async templates * Regenerate samples for java play async
32 lines
979 B
Bash
Executable File
32 lines
979 B
Bash
Executable File
#!/bin/sh
|
|
|
|
SCRIPT="$0"
|
|
|
|
while [ -h "$SCRIPT" ] ; do
|
|
ls=`ls -ld "$SCRIPT"`
|
|
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
if expr "$link" : '/.*' > /dev/null; then
|
|
SCRIPT="$link"
|
|
else
|
|
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
fi
|
|
done
|
|
|
|
if [ ! -d "${APP_DIR}" ]; then
|
|
APP_DIR=`dirname "$SCRIPT"`/..
|
|
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
fi
|
|
|
|
executable="./modules/swagger-codegen-cli/target/swagger-codegen-cli.jar"
|
|
|
|
if [ ! -f "$executable" ]
|
|
then
|
|
mvn clean package
|
|
fi
|
|
|
|
# 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="$@ generate -t modules/swagger-codegen/src/main/resources/JavaPlayFramework -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l java-play-framework -c bin/java-play-framework-petstore-server-async.json -o samples/server/petstore/java-play-framework-async -DhideGenerationTimestamp=true"
|
|
|
|
java $JAVA_OPTS -jar $executable $ags
|