@@ -27,7 +27,7 @@ public String getHelp() {
27
27
}
28
28
29
29
public JaxRSServerCodegen () {
30
- super ();
30
+ super . processOpts ();
31
31
32
32
sourceFolder = "src/gen/java" ;
33
33
@@ -37,7 +37,6 @@ public JaxRSServerCodegen() {
37
37
apiTemplateFiles .put ("apiService.mustache" , ".java" );
38
38
apiTemplateFiles .put ("apiServiceImpl.mustache" , ".java" );
39
39
apiTemplateFiles .put ("apiServiceFactory.mustache" , ".java" );
40
-
41
40
templateDir = "JavaJaxRS" ;
42
41
apiPackage = System .getProperty ( "swagger.codegen.jaxrs.apipackage" , "io.swagger.api" ) ;
43
42
modelPackage = System .getProperty ( "swagger.codegen.jaxrs.modelpackage" , "io.swagger.model" );
@@ -48,6 +47,24 @@ public JaxRSServerCodegen() {
48
47
additionalProperties .put ("artifactVersion" , artifactVersion );
49
48
additionalProperties .put ("title" , title );
50
49
50
+
51
+ languageSpecificPrimitives = new HashSet <String >(
52
+ Arrays .asList (
53
+ "String" ,
54
+ "boolean" ,
55
+ "Boolean" ,
56
+ "Double" ,
57
+ "Integer" ,
58
+ "Long" ,
59
+ "Float" )
60
+ );
61
+ }
62
+
63
+
64
+ @ Override
65
+ public void processOpts () {
66
+ super .processOpts ();
67
+
51
68
supportingFiles .clear ();
52
69
supportingFiles .add (new SupportingFile ("pom.mustache" , "" , "pom.xml" ));
53
70
supportingFiles .add (new SupportingFile ("README.mustache" , "" , "README.md" ));
@@ -62,16 +79,6 @@ public JaxRSServerCodegen() {
62
79
supportingFiles .add (new SupportingFile ("web.mustache" ,
63
80
("src/main/webapp/WEB-INF" ), "web.xml" ));
64
81
65
- languageSpecificPrimitives = new HashSet <String >(
66
- Arrays .asList (
67
- "String" ,
68
- "boolean" ,
69
- "Boolean" ,
70
- "Double" ,
71
- "Integer" ,
72
- "Long" ,
73
- "Float" )
74
- );
75
82
}
76
83
77
84
@ Override
0 commit comments