maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject [maven-antrun-plugin] 06/21: Fixing MNG-777: no output from ant tasks. I set the logger level to INFO so <echo> messages will appear.
Date Wed, 20 Dec 2017 09:26:53 GMT
This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-antrun-plugin-1.0
in repository https://gitbox.apache.org/repos/asf/maven-antrun-plugin.git

commit 45a5aebc3bf002e214c630c3c40c6c3e51dff813
Author: Kenney Westerhof <kenney@apache.org>
AuthorDate: Fri Sep 16 10:51:45 2005 +0000

    Fixing MNG-777: no output from ant tasks. I set the
    logger level to INFO so <echo> messages will appear.
    
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk/maven-plugins/maven-antrun-plugin@289487
13f79535-47bb-0310-9956-ffa450edef68
---
 src/main/java/org/apache/maven/plugin/antrun/AbstractAntMojo.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/main/java/org/apache/maven/plugin/antrun/AbstractAntMojo.java b/src/main/java/org/apache/maven/plugin/antrun/AbstractAntMojo.java
index 968a8e3..0f9c068 100644
--- a/src/main/java/org/apache/maven/plugin/antrun/AbstractAntMojo.java
+++ b/src/main/java/org/apache/maven/plugin/antrun/AbstractAntMojo.java
@@ -20,6 +20,7 @@ import org.apache.maven.plugin.AbstractMojo;
 import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.project.MavenProject;
 import org.apache.tools.ant.DefaultLogger;
+import org.apache.tools.ant.Project;
 import org.apache.tools.ant.PropertyHelper;
 import org.apache.tools.ant.Target;
 
@@ -45,6 +46,8 @@ public abstract class AbstractAntMojo
             DefaultLogger antLogger = new DefaultLogger();
             antLogger.setOutputPrintStream( System.out );
             antLogger.setErrorPrintStream( System.err );
+            antLogger.setMessageOutputLevel( Project.MSG_INFO );
+
             antTasks.getProject().addBuildListener( antLogger );
             antTasks.getProject().setBaseDir( mavenProject.getBasedir() );
 

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <commits@maven.apache.org>.

Mime
View raw message