Skip to content

Commit

Permalink
fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
shalousun committed Jul 29, 2020
1 parent 1541f41 commit 7f0eba2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/com/smartdoc/mojo/BaseDocsGeneratorMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ public void execute() throws MojoExecutionException, MojoFailureException {
if (!FileUtil.isAbsPath(rpcConsumerConfig) && StringUtil.isNotEmpty(rpcConsumerConfig)) {
apiConfig.setRpcConsumerConfig(project.getBasedir().getPath() + "/" + rpcConsumerConfig);
}
if (!FileUtil.isAbsPath(apiConfig.getOutPath())) {
apiConfig.setOutPath(project.getBasedir().getPath() + "/" + apiConfig.getOutPath());
String outPath = apiConfig.getOutPath();
if (!FileUtil.isAbsPath(outPath) && StringUtil.isNotEmpty(outPath)) {
apiConfig.setOutPath(project.getBasedir().getPath() + "/" + outPath);
}
getLog().info("API Documentation output to " + apiConfig.getOutPath());
getLog().info("API Documentation output to " + outPath);
this.executeMojo(apiConfig, javaProjectBuilder);

}


Expand Down

0 comments on commit 7f0eba2

Please sign in to comment.