forked from loafle/openapi-generator-original
Merge pull request #4193 from mbohlool/plugin-fix
Add gitUseID and gitRepoID flags to maven plugin
This commit is contained in:
commit
2425a35f45
@ -70,6 +70,18 @@ public class CodeGenMojo extends AbstractMojo {
|
|||||||
@Parameter(name = "inputSpec", required = true)
|
@Parameter(name = "inputSpec", required = true)
|
||||||
private String inputSpec;
|
private String inputSpec;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Git user ID, e.g. swagger-api.
|
||||||
|
*/
|
||||||
|
@Parameter(name = "gitUserId", required = false)
|
||||||
|
private String gitUserId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Git repo ID, e.g. swagger-codegen.
|
||||||
|
*/
|
||||||
|
@Parameter(name = "gitRepoId", required = false)
|
||||||
|
private String gitRepoId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Folder containing the template files.
|
* Folder containing the template files.
|
||||||
*/
|
*/
|
||||||
@ -195,6 +207,14 @@ public class CodeGenMojo extends AbstractMojo {
|
|||||||
configurator.setInputSpec(inputSpec);
|
configurator.setInputSpec(inputSpec);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(isNotEmpty(gitUserId)) {
|
||||||
|
configurator.setGitUserId(gitUserId);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(isNotEmpty(gitRepoId)) {
|
||||||
|
configurator.setGitRepoId(gitRepoId);
|
||||||
|
}
|
||||||
|
|
||||||
configurator.setLang(language);
|
configurator.setLang(language);
|
||||||
|
|
||||||
configurator.setOutputDir(output.getAbsolutePath());
|
configurator.setOutputDir(output.getAbsolutePath());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user