2019-03-17 13:27:51 +00:00
|
|
|
setlocal
|
|
|
|
|
2018-03-06 16:20:46 +00:00
|
|
|
set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar
|
2018-02-08 06:47:47 +00:00
|
|
|
|
|
|
|
If Not Exist %executable% (
|
|
|
|
mvn clean package
|
|
|
|
)
|
|
|
|
|
2019-03-17 13:27:51 +00:00
|
|
|
set SPEC=modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml
|
|
|
|
set GENERATOR=go
|
|
|
|
set STUB_DIR=samples\client\petstore\go\go-petstore-withXml
|
|
|
|
|
|
|
|
echo Removing files and folders under %STUB_DIR%
|
|
|
|
del /F /S /Q %STUB_DIR%
|
|
|
|
|
2018-02-08 06:47:47 +00:00
|
|
|
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties
|
2019-06-07 17:07:52 +00:00
|
|
|
set ags=generate -t modules\openapi-generator\src\main\resources\go -i %SPEC% -g %GENERATOR% -o %STUB_DIR% --additional-properties packageName=petstore,withXml=true
|
2018-02-08 06:47:47 +00:00
|
|
|
|
|
|
|
java %JAVA_OPTS% -jar %executable% %ags%
|
2019-03-17 13:27:51 +00:00
|
|
|
|
|
|
|
endlocal
|