Skip to content

Commit c2d8451

Browse files
committed
fix #3741 - log output file path
1 parent 2907229 commit c2d8451

File tree

1 file changed

+2
-0
lines changed
  • modules/swagger-maven-plugin/src/main/java/io/swagger/v3/plugin/maven

1 file changed

+2
-0
lines changed

modules/swagger-maven-plugin/src/main/java/io/swagger/v3/plugin/maven/SwaggerMojo.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,12 @@ public void execute() throws MojoExecutionException, MojoFailureException {
120120
if (openapiJson != null) {
121121
path = Paths.get(outputPath, outputFileName + ".json");
122122
Files.write(path, openapiJson.getBytes(Charset.forName(encoding)));
123+
getLog().info( "JSON output: " + path.toFile().getCanonicalPath());
123124
}
124125
if (openapiYaml != null) {
125126
path = Paths.get(outputPath, outputFileName + ".yaml");
126127
Files.write(path, openapiYaml.getBytes(Charset.forName(encoding)));
128+
getLog().info( "YAML output: " + path.toFile().getCanonicalPath());
127129
}
128130

129131
} catch (OpenApiConfigurationException e) {

0 commit comments

Comments
 (0)