From 98823bd6d2d30ae78b1eff32cd102674dfe52cea Mon Sep 17 00:00:00 2001 From: Kenney Westerhof Date: Fri, 16 Sep 2005 10:51:45 +0000 Subject: [PATCH] Fixing MNG-777: no output from ant tasks. I set the logger level to INFO so messages will appear. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@289487 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/maven/plugin/antrun/AbstractAntMojo.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/maven-plugins/maven-antrun-plugin/src/main/java/org/apache/maven/plugin/antrun/AbstractAntMojo.java b/maven-plugins/maven-antrun-plugin/src/main/java/org/apache/maven/plugin/antrun/AbstractAntMojo.java index 968a8e3e17..0f9c0682b6 100644 --- a/maven-plugins/maven-antrun-plugin/src/main/java/org/apache/maven/plugin/antrun/AbstractAntMojo.java +++ b/maven-plugins/maven-antrun-plugin/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() );