Skip to content

Commit

Permalink
[MJAVADOC-713] Skipping Javadoc reportset leaves empty Javadoc link i…
Browse files Browse the repository at this point in the history
…n site

This closes #246
  • Loading branch information
michael-o committed Oct 29, 2023
1 parent 4bad23f commit afb2dee
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public boolean isExternalReport() {
public boolean canGenerateReport() {
boolean canGenerate = false;

if (this.isAggregator() || !"pom".equals(this.project.getPackaging())) {
if (!skip && (this.isAggregator() || !"pom".equals(this.project.getPackaging()))) {
Collection<Path> sourcePaths;
Map<Path, Collection<String>> files;
try {
Expand Down Expand Up @@ -289,11 +289,6 @@ private void updateReportOutputDirectory(File reportOutputDirectory, String dest
/** {@inheritDoc} */
@Override
public void doExecute() throws MojoExecutionException, MojoFailureException {
if (skip) {
getLog().info("Skipping javadoc generation");
return;
}

File outputDirectory = new File(getOutputDirectory());

String filename = getOutputName() + ".html";
Expand Down

0 comments on commit afb2dee

Please sign in to comment.