forked from loafle/openapi-generator-original
		
	minor enhancement to scala gatling
This commit is contained in:
		
							parent
							
								
									6d2d4298df
								
							
						
					
					
						commit
						0469975632
					
				@ -26,6 +26,6 @@ fi
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# if you've executed sbt assembly previously it will use that instead.
 | 
					# 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"
 | 
					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
 | 
					java $JAVA_OPTS -jar $executable $ags
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										10
									
								
								bin/windows/scala-gatling-petstore.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										10
									
								
								bin/windows/scala-gatling-petstore.sh
									
									
									
									
									
										Executable 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%
 | 
				
			||||||
@ -47,7 +47,7 @@ public class ScalaGatlingCodegen extends AbstractScalaCodegen implements Codegen
 | 
				
			|||||||
     * @return A string value for the help message
 | 
					     * @return A string value for the help message
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public String getHelp() {
 | 
					    public String getHelp() {
 | 
				
			||||||
        return "Generates a gatling simulation library.";
 | 
					        return "Generates a gatling simulation library (beta).";
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public ScalaGatlingCodegen() {
 | 
					    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
 | 
					         * 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.
 | 
					         * 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
 | 
					         * Api Package.  Optional, if needed, this can be used in templates
 | 
				
			||||||
 | 
				
			|||||||
@ -19,7 +19,6 @@ io.swagger.codegen.languages.ErlangServerCodegen
 | 
				
			|||||||
io.swagger.codegen.languages.FinchServerCodegen
 | 
					io.swagger.codegen.languages.FinchServerCodegen
 | 
				
			||||||
io.swagger.codegen.languages.FlashClientCodegen
 | 
					io.swagger.codegen.languages.FlashClientCodegen
 | 
				
			||||||
io.swagger.codegen.languages.FlaskConnexionCodegen
 | 
					io.swagger.codegen.languages.FlaskConnexionCodegen
 | 
				
			||||||
io.swagger.codegen.languages.ScalaGatlingCodegen
 | 
					 | 
				
			||||||
io.swagger.codegen.languages.GoClientCodegen
 | 
					io.swagger.codegen.languages.GoClientCodegen
 | 
				
			||||||
io.swagger.codegen.languages.GoServerCodegen
 | 
					io.swagger.codegen.languages.GoServerCodegen
 | 
				
			||||||
io.swagger.codegen.languages.GroovyClientCodegen
 | 
					io.swagger.codegen.languages.GroovyClientCodegen
 | 
				
			||||||
@ -61,6 +60,7 @@ io.swagger.codegen.languages.RubyClientCodegen
 | 
				
			|||||||
io.swagger.codegen.languages.RustClientCodegen
 | 
					io.swagger.codegen.languages.RustClientCodegen
 | 
				
			||||||
io.swagger.codegen.languages.RustServerCodegen
 | 
					io.swagger.codegen.languages.RustServerCodegen
 | 
				
			||||||
io.swagger.codegen.languages.ScalaClientCodegen
 | 
					io.swagger.codegen.languages.ScalaClientCodegen
 | 
				
			||||||
 | 
					io.swagger.codegen.languages.ScalaGatlingCodegen
 | 
				
			||||||
io.swagger.codegen.languages.ScalaLagomServerCodegen
 | 
					io.swagger.codegen.languages.ScalaLagomServerCodegen
 | 
				
			||||||
io.swagger.codegen.languages.ScalatraServerCodegen
 | 
					io.swagger.codegen.languages.ScalatraServerCodegen
 | 
				
			||||||
io.swagger.codegen.languages.ScalazClientCodegen
 | 
					io.swagger.codegen.languages.ScalazClientCodegen
 | 
				
			||||||
 | 
				
			|||||||
@ -1 +1 @@
 | 
				
			|||||||
2.3.0-SNAPSHOT
 | 
					2.4.0-SNAPSHOT
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user