forked from loafle/openapi-generator-original
fix command line, update git_push.sh
This commit is contained in:
@@ -120,22 +120,6 @@ public class DefaultCodegen {
|
||||
this.setModelNameSuffix((String) additionalProperties.get(CodegenConstants.MODEL_NAME_SUFFIX));
|
||||
}
|
||||
|
||||
if (StringUtils.isEmpty(this.getGitRepoId()))
|
||||
this.setGitRepoId("YOUR_GIT_REPO_ID");
|
||||
additionalProperties.put(CodegenConstants.GIT_REPO_ID, this.getGitRepoId());
|
||||
|
||||
if (StringUtils.isEmpty(this.getGitUserId()))
|
||||
this.setGitUserId("YOUR_GIT_USER_ID");
|
||||
additionalProperties.put(CodegenConstants.GIT_USER_ID, this.getGitUserId());
|
||||
|
||||
if (StringUtils.isEmpty(this.getReleaseNote()))
|
||||
this.setReleaseNote("Minor update");
|
||||
additionalProperties.put(CodegenConstants.RELEASE_NOTE, this.getReleaseNote());
|
||||
|
||||
if (StringUtils.isEmpty(this.getReleaseVersion()))
|
||||
this.setReleaseVersion("0.1.0");
|
||||
additionalProperties.put(CodegenConstants.RELEASE_VERSION, this.getReleaseVersion());
|
||||
|
||||
}
|
||||
|
||||
// override with any special post-processing for all models
|
||||
|
||||
@@ -362,6 +362,10 @@ public class CodegenConfigurator {
|
||||
checkAndSetAdditionalProperty(templateDir, toAbsolutePathStr(templateDir), CodegenConstants.TEMPLATE_DIR);
|
||||
checkAndSetAdditionalProperty(modelNamePrefix, CodegenConstants.MODEL_NAME_PREFIX);
|
||||
checkAndSetAdditionalProperty(modelNameSuffix, CodegenConstants.MODEL_NAME_SUFFIX);
|
||||
checkAndSetAdditionalProperty(gitUserId, CodegenConstants.GIT_USER_ID);
|
||||
checkAndSetAdditionalProperty(gitRepoId, CodegenConstants.GIT_REPO_ID);
|
||||
checkAndSetAdditionalProperty(releaseVersion, CodegenConstants.RELEASE_VERSION);
|
||||
checkAndSetAdditionalProperty(releaseNote, CodegenConstants.RELEASE_NOTE);
|
||||
|
||||
handleDynamicProperties(config);
|
||||
|
||||
|
||||
@@ -136,7 +136,7 @@ public class PerlClientCodegen extends DefaultCodegen implements CodegenConfig {
|
||||
supportingFiles.add(new SupportingFile("autodoc.script.mustache", "bin", "autodoc"));
|
||||
supportingFiles.add(new SupportingFile("README.mustache", "", "README.md"));
|
||||
supportingFiles.add(new SupportingFile("gitignore.mustache", "", ".gitignore"));
|
||||
supportingFiles.add(new SupportingFile("git_push.mustache", "", "git_push.sh"));
|
||||
supportingFiles.add(new SupportingFile("git_push.sh.mustache", "", "git_push.sh"));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user