You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2025/06/03 11:21:35 UTC
(maven-javadoc-plugin) 01/01: Reduce non-debug logging
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch javadoc
in repository https://gitbox.apache.org/repos/asf/maven-javadoc-plugin.git
commit 58c485ae5f8add5e0c2e93a0f1a311df2a813564
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Tue Jun 3 07:21:19 2025 -0400
Reduce non-debug logging
---
.../maven/plugins/javadoc/AbstractJavadocMojo.java | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java b/src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java
index a6b59161..7c3cb593 100644
--- a/src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java
+++ b/src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java
@@ -3436,7 +3436,7 @@ public abstract class AbstractJavadocMojo extends AbstractMojo {
//
// In Java 9 and above the JRE is no longer in a subdirectory of the
// JDK, i.e. the JRE and the JDK are merged. In this case the java
- // command is installed to my-dir/bin/java along side the javadoc
+ // command is installed to my-dir/bin/java alongside the javadoc
// command. So the relative path from "java.home" to the javadoc
// command is bin/javadoc.
//
@@ -3451,8 +3451,9 @@ public abstract class AbstractJavadocMojo extends AbstractMojo {
// "JEP 220: Modular Run-Time Images"
// http://openjdk.java.net/jeps/220
// ----------------------------------------------------------------------
- // For IBM's JDK 1.2
// CHECKSTYLE_ON: LineLength
+
+ // For IBM's JDK 1.2
if (SystemUtils.IS_OS_AIX) {
javadocExe =
new File(SystemUtils.getJavaHome() + File.separator + ".." + File.separator + "sh", javadocCommand);
@@ -3930,7 +3931,7 @@ public abstract class AbstractJavadocMojo extends AbstractMojo {
selectors[0].setExcludes(new String[] {"META-INF/**"});
unArchiver.setFileSelectors(selectors);
- getLog().info("Extracting contents of resources artifact: " + artifact.getArtifactId());
+ getLog().debug("Extracting contents of resources artifact: " + artifact.getArtifactId());
try {
unArchiver.extract();
} catch (ArchiverException e) {
@@ -5009,13 +5010,13 @@ public abstract class AbstractJavadocMojo extends AbstractMojo {
prvdata = null;
}
if (curdata.equals(prvdata)) {
- getLog().info("Skipping javadoc generation, everything is up to date.");
+ getLog().debug("Skipping javadoc generation, everything is up to date.");
return true;
} else {
if (prvdata == null) {
- getLog().info("No previous run data found, generating javadoc.");
+ getLog().debug("No previous run data found, generating javadoc.");
} else {
- getLog().info("Configuration changed, re-generating javadoc.");
+ getLog().debug("Configuration changed, re-generating javadoc.");
if (getLog().isDebugEnabled()) {
List<String> newStrings = new ArrayList<>(curdata);
List<String> remStrings = new ArrayList<>(prvdata);
@@ -5365,14 +5366,13 @@ public abstract class AbstractJavadocMojo extends AbstractMojo {
File location = new File(p.getBasedir(), javadocDirRelative);
if (!location.exists()) {
+ String javadocGoal = getFullJavadocGoal();
if (getLog().isDebugEnabled()) {
getLog().debug("Javadoc directory not found: " + location);
+ getLog().debug("The goal '" + javadocGoal + "' has not been previously called for the module: '"
+ + p.getId() + "'. Trying to invoke it...");
}
- String javadocGoal = getFullJavadocGoal();
- getLog().info("The goal '" + javadocGoal + "' has not been previously called for the module: '"
- + p.getId() + "'. Trying to invoke it...");
-
File invokerDir = new File(project.getBuild().getDirectory(), "invoker");
invokerDir.mkdirs();
File invokerLogFile = FileUtils.createTempFile("maven-javadoc-plugin", ".txt", invokerDir);