This is an automated email from the ASF dual-hosted git repository.
sjaranowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-war-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new 9f49876 fix: Color log level INFO in CopyUserManifestTask
9f49876 is described below
commit 9f498763b2331e8a5d59b58c96bd00a4bd8144b7
Author: Dmitrii Karagodin <[email protected]>
AuthorDate: Sun Nov 16 12:32:35 2025 +0300
fix: Color log level INFO in CopyUserManifestTask
---
.../war/packaging/CopyUserManifestTask.java | 28 +---------------------
1 file changed, 1 insertion(+), 27 deletions(-)
diff --git
a/src/main/java/org/apache/maven/plugins/war/packaging/CopyUserManifestTask.java
b/src/main/java/org/apache/maven/plugins/war/packaging/CopyUserManifestTask.java
index fbee204..39b023d 100644
---
a/src/main/java/org/apache/maven/plugins/war/packaging/CopyUserManifestTask.java
+++
b/src/main/java/org/apache/maven/plugins/war/packaging/CopyUserManifestTask.java
@@ -23,44 +23,18 @@ import java.io.IOException;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
-import org.apache.maven.plugin.logging.Log;
-import org.apache.maven.plugin.logging.SystemStreamLog;
/**
* @author Haikal Saadh
*/
public class CopyUserManifestTask extends AbstractWarPackagingTask {
- /** Instance logger. */
- private Log log;
-
- /**
- * Returns the logger.
- *
- * return logger.
- */
- public Log getLog() {
- if (log == null) {
- log = new SystemStreamLog();
- }
- return log;
- }
-
- /**
- * The logger.
- *
- * @param log the logger to set
- */
- public void setLog(Log log) {
- this.log = log;
- }
-
public void performPackaging(WarPackagingContext context) throws
MojoExecutionException, MojoFailureException {
File userManifest = context.getArchive().getManifestFile();
if (userManifest != null) {
try {
- getLog().info("Copying manifest...");
+ context.getLog().info("Copying manifest...");
File metainfDir = new File(context.getWebappDirectory(),
META_INF_PATH);
copyFile(context, userManifest, new File(metainfDir,
"MANIFEST.MF"), "META-INF/MANIFEST.MF", true);