From b6eb3451c86644b2f514b360d36f116758e83942 Mon Sep 17 00:00:00 2001 From: wing328 Date: Sun, 8 Apr 2018 23:13:05 +0800 Subject: [PATCH] add windows batch script for pistache server --- bin/windows/pistache-server-petstore.bat | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 bin/windows/pistache-server-petstore.bat diff --git a/bin/windows/pistache-server-petstore.bat b/bin/windows/pistache-server-petstore.bat new file mode 100644 index 000000000000..216745f1a692 --- /dev/null +++ b/bin/windows/pistache-server-petstore.bat @@ -0,0 +1,10 @@ +set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar + +If Not Exist %executable% ( + mvn clean package +) + +REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties +set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -l cpp-pistache-server -o samples\server\petstore\pistache-server\ + +java %JAVA_OPTS% -jar %executable% %ags%