From aefdc2b95d551b2bb52032936e31e725590e76bf Mon Sep 17 00:00:00 2001 From: Kenney Westerhof Date: Sat, 13 Aug 2005 15:04:18 +0000 Subject: [PATCH] Set project's basedir on the ant Target so relative paths work. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@232502 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/maven/plugin/antrun/AbstractAntMojo.java | 1 + 1 file changed, 1 insertion(+) 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 8c7ecfe426..968a8e3e17 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 @@ -46,6 +46,7 @@ public abstract class AbstractAntMojo antLogger.setOutputPrintStream( System.out ); antLogger.setErrorPrintStream( System.err ); antTasks.getProject().addBuildListener( antLogger ); + antTasks.getProject().setBaseDir( mavenProject.getBasedir() ); getLog().info( "Executing tasks" );