Skip to content

Commit 64553ba

Browse files
committed
set system property for supporting files in order to stop the api generatior for swagger and swagger-yaml generator.
1 parent 554d443 commit 64553ba

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/SwaggerGenerator.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import java.io.File;
44

55
import io.swagger.codegen.CliOption;
6+
import io.swagger.codegen.CodegenConstants;
67
import org.apache.commons.io.FileUtils;
78
import org.apache.commons.lang3.StringUtils;
89
import org.slf4j.Logger;
@@ -34,6 +35,8 @@ public SwaggerGenerator() {
3435
"output filename")
3536
.defaultValue(SWAGGER_FILENAME_DEFAULT_JSON));
3637
supportingFiles.add(new SupportingFile("README.md", "", "README.md"));
38+
39+
System.setProperty(CodegenConstants.SUPPORTING_FILES, Boolean.TRUE.toString());
3740
}
3841

3942
@Override

modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/SwaggerYamlGenerator.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ public SwaggerYamlGenerator() {
4141
.defaultValue(SWAGGER_FILENAME_DEFAULT_YAML));
4242

4343
supportingFiles.add(new SupportingFile("README.md", "", "README.md"));
44+
45+
System.setProperty(CodegenConstants.SUPPORTING_FILES, Boolean.TRUE.toString());
4446
}
4547

4648
@Override

0 commit comments

Comments
 (0)