minor enhancement to scala gatling

This commit is contained in:
wing328 2018-01-07 17:38:55 +08:00
parent 6d2d4298df
commit 0469975632
12 changed files with 16 additions and 6 deletions

View File

@ -26,6 +26,6 @@ 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/ScalaGatling -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l scala-gatling -o samples/client/petstore/scala-gatling"
ags="$@ generate -t modules/swagger-codegen/src/main/resources/scala-gatling -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l scala-gatling -o samples/client/petstore/scala-gatling"
java $JAVA_OPTS -jar $executable $ags

View File

@ -0,0 +1,10 @@
set executable=.\modules\swagger-codegen-cli\target\swagger-codegen-cli.jar
If Not Exist %executable% (
mvn clean package
)
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M
set ags=generate -t modules\swagger-codegen\src\main\resources\scala-gatling -i modules\swagger-codegen\src\test\resources\2_0\petstore.yaml -l scala-gatling -o samples\client\petstore\scala-gatling
java %JAVA_OPTS% -jar %executable% %ags%

View File

@ -47,7 +47,7 @@ public class ScalaGatlingCodegen extends AbstractScalaCodegen implements Codegen
* @return A string value for the help message
*/
public String getHelp() {
return "Generates a gatling simulation library.";
return "Generates a gatling simulation library (beta).";
}
public ScalaGatlingCodegen() {
@ -71,7 +71,7 @@ public class ScalaGatlingCodegen extends AbstractScalaCodegen implements Codegen
* Template Location. This is the location which templates will be read from. The generator
* will use the resource stream to attempt to read the templates.
*/
templateDir = "ScalaGatling";
templateDir = "scala-gatling";
/**
* Api Package. Optional, if needed, this can be used in templates
@ -342,4 +342,4 @@ public class ScalaGatlingCodegen extends AbstractScalaCodegen implements Codegen
type = swaggerType;
return toModelName(type);
}
}
}

View File

@ -19,7 +19,6 @@ io.swagger.codegen.languages.ErlangServerCodegen
io.swagger.codegen.languages.FinchServerCodegen
io.swagger.codegen.languages.FlashClientCodegen
io.swagger.codegen.languages.FlaskConnexionCodegen
io.swagger.codegen.languages.ScalaGatlingCodegen
io.swagger.codegen.languages.GoClientCodegen
io.swagger.codegen.languages.GoServerCodegen
io.swagger.codegen.languages.GroovyClientCodegen
@ -61,6 +60,7 @@ io.swagger.codegen.languages.RubyClientCodegen
io.swagger.codegen.languages.RustClientCodegen
io.swagger.codegen.languages.RustServerCodegen
io.swagger.codegen.languages.ScalaClientCodegen
io.swagger.codegen.languages.ScalaGatlingCodegen
io.swagger.codegen.languages.ScalaLagomServerCodegen
io.swagger.codegen.languages.ScalatraServerCodegen
io.swagger.codegen.languages.ScalazClientCodegen

View File

@ -1 +1 @@
2.3.0-SNAPSHOT
2.4.0-SNAPSHOT