Skip to content

Commit

Permalink
Missing
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-o committed Aug 14, 2024
1 parent e86a676 commit f81f195
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 100 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5855,8 +5855,7 @@ private boolean isJavadocVMInitError(String output) {

/**
* @param p not null
* @return the javadoc link based on the project url i.e. <code>${project.url}/${destDir}</code> where
* <code>destDir</code> is configued in the Javadoc plugin configuration (<code>apidocs</code> by default).
* @return the javadoc link based on the project url i.e. <code>${project.url}/apidocs</code>.
* @since 2.6
*/
private static String getJavadocLink(MavenProject p) {
Expand All @@ -5865,15 +5864,8 @@ private static String getJavadocLink(MavenProject p) {
}

String url = cleanUrl(p.getUrl());
String destDir = "apidocs"; // see JavadocReport#destDir

final String pluginId = "org.apache.maven.plugins:maven-javadoc-plugin";
String destDirConfigured = getPluginParameter(p, pluginId, "destDir");
if (destDirConfigured != null) {
destDir = destDirConfigured;
}

return url + "/" + destDir;
return url + "/apidocs";
}

/**
Expand Down
3 changes: 0 additions & 3 deletions src/site/apt/examples/alternate-doclet.apt.vm
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ Using Alternate Doclet In Addition To The Javadoc Doclet
<additionalOption>\${project.build.directory}/site/doccheck</additionalOption>
</additionalOptions>

<!-- Other dir than apidocs -->
<destDir>doccheck</destDir>

<!-- For the project-reports page-->
<name>DocCheck</name>
<description>DocCheck documentation.</description>
Expand Down
11 changes: 5 additions & 6 deletions src/site/apt/examples/output-configuration.apt.vm
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ Using Alternative Output Directory
<artifactId>maven-javadoc-plugin</artifactId>
<version>${project.version}</version>
<configuration>
<reportOutputDirectory>\${project.reporting.outputDirectory}/myoutput</reportOutputDirectory>
<destDir>myapidocs</destDir>
<reportOutputDirectory>\${project.build.directory}/myoutput</reportOutputDirectory>
...
</configuration>
</plugin>
Expand All @@ -53,8 +52,8 @@ Using Alternative Output Directory
+-----+

Running <<<mvn javadoc:javadoc>>> will output the Javadoc in the
<$\{project.reporting.outputDirectory\}/myoutput/myapidocs> instead of the default directory, i.e.
<$\{project.reporting.outputDirectory\}/apidocs>.
<<<$\{project.build.directory\}/myoutput/apidocs>>> instead of the default directory, i.e.
<<<$\{project.build.directory\}/reports/apidocs>>>.

<<Note>>: Running <mvn site> will automatically use the <$\{project.reporting.outputDirectory\}> directory and
in this case, <reportOutputDirectory> has no effect. Only, <testDestDir> and <destDir> could be used.
<<Note>>: Running <<<mvn site>>> will automatically use the <<<$\{project.reporting.outputDirectory\}>>>
directory and in this case, <<<\<reportOutputDirectory /\>>>> has no effect.

This file was deleted.

0 comments on commit f81f195

Please sign in to comment.