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@289487 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Kenney Westerhof 2005-09-16 10:51:45 +00:00
parent 3dbef8fe83
commit 98823bd6d2
1 changed files with 3 additions and 0 deletions

View File

@ -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() );