You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2017/12/20 09:27:04 UTC

[maven-ant-plugin] 46/50: Add two common variables, project.build.outputDirectory and project.build.directory

This is an automated email from the ASF dual-hosted git repository.

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

commit 6cf6feb70cd374c16a138e5ec2a4be42aa8472ab
Author: Carlos Sanchez Gonzalez <ca...@apache.org>
AuthorDate: Sat Apr 14 15:36:28 2007 +0000

    Add two common variables, project.build.outputDirectory and project.build.directory
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-ant-plugin@528821 13f79535-47bb-0310-9956-ffa450edef68
---
 src/main/java/org/apache/maven/plugin/ant/AntBuildWriter.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/main/java/org/apache/maven/plugin/ant/AntBuildWriter.java b/src/main/java/org/apache/maven/plugin/ant/AntBuildWriter.java
index fc2ad21..b30fd33 100644
--- a/src/main/java/org/apache/maven/plugin/ant/AntBuildWriter.java
+++ b/src/main/java/org/apache/maven/plugin/ant/AntBuildWriter.java
@@ -140,11 +140,14 @@ public class AntBuildWriter
         // target
         addProperty( properties, "maven.build.dir", PathUtils.toRelative( project.getBasedir(), project.getBuild()
             .getDirectory() ) );
+        addProperty( properties, "project.build.directory", "${maven.build.dir}" );
 
         // ${maven.build.dir}/classes
         addProperty( properties, "maven.build.outputDir", "${maven.build.dir}/"
             + PathUtils.toRelative( new File( project.getBasedir(), properties.getProperty( "maven.build.dir" ) ),
                                     project.getBuild().getOutputDirectory() ) );
+        addProperty( properties, "project.build.outputDirectory", "${maven.build.outputDir}" );
+
         // src/main/java
         if ( !project.getCompileSourceRoots().isEmpty() )
         {

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