Skip to content

Commit 9eec96d

Browse files
authored
Merge pull request #3742 from swagger-api/maven-plugin-log
fix #3741 - log output file path
2 parents 2907229 + c2d8451 commit 9eec96d

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)