Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,9 @@ public final void execute() throws MojoExecutionException {
private void reportToMarkup() throws MojoExecutionException {
Path relativeOutput = getProject().getBasedir().toPath().relativize(new File(getOutputDirectory()).toPath());
if (isExternalReport()) {
getLog().info("Rendering external report to " + relativeOutput.resolve(getOutputName()));
getLog().info("Rendering external report to " + relativeOutput.resolve(getOutputPath()));
} else {
String filename = getOutputName() + '.' + outputFormat;
String filename = getOutputPath() + '.' + outputFormat;
getLog().info("Rendering report as " + outputFormat + " markup to " + relativeOutput.resolve(filename));

try {
Expand Down Expand Up @@ -256,11 +256,11 @@ public Sink createSink(File file, String filename) throws IOException {
}

private void reportToSite() throws MojoExecutionException {
String filename = getOutputName() + ".html";
String filename = getOutputPath() + ".html";

Path relativeOutput = getProject().getBasedir().toPath().relativize(new File(getOutputDirectory()).toPath());
if (isExternalReport()) {
getLog().info("Rendering external report to " + relativeOutput.resolve(getOutputName()));
getLog().info("Rendering external report to " + relativeOutput.resolve(getOutputPath()));
} else {
getLog().info("Rendering report to " + relativeOutput.resolve(filename));
}
Expand All @@ -277,7 +277,7 @@ private void reportToSite() throws MojoExecutionException {

String reportMojoInfo = mojoExecution.getPlugin().getId() + ":" + mojoExecution.getGoal();
DocumentRenderingContext docRenderingContext =
new DocumentRenderingContext(outputDirectory, getOutputName(), reportMojoInfo);
new DocumentRenderingContext(outputDirectory, getOutputPath(), reportMojoInfo);

SiteRendererSink sink = new SiteRendererSink(docRenderingContext);

Expand Down