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

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

commit 228327bd57db05750532ffe40f4b13b9c040fe56
Author: Benjamin Bentmann <bentm...@apache.org>
AuthorDate: Fri Mar 21 15:47:27 2008 +0000

    [MANT-37] Wrong path to test resources in maven-build.xml
    
    git-svn-id: 
https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-ant-plugin@639680 
13f79535-47bb-0310-9956-ffa450edef68
---
 src/main/java/org/apache/maven/plugin/ant/AntBuildWriter.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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 8d80613..c111fcb 100644
--- a/src/main/java/org/apache/maven/plugin/ant/AntBuildWriter.java
+++ b/src/main/java/org/apache/maven/plugin/ant/AntBuildWriter.java
@@ -390,7 +390,7 @@ public class AntBuildWriter
 
         // TODO: optional in m1
         // TODO: USD properties
-        AntBuildWriterUtil.writeCommentText( writer, "Build environnement 
properties", 1 );
+        AntBuildWriterUtil.writeCommentText( writer, "Build environment 
properties", 1 );
 
         // 
----------------------------------------------------------------------
         // File properties to override local properties
@@ -470,9 +470,9 @@ public class AntBuildWriter
             }
         }
 
-        if ( project.getBuild().getResources() != null )
+        if ( project.getBuild().getTestResources() != null )
         {
-            Resource[] array = (Resource[]) 
project.getBuild().getResources().toArray( new Resource[0] );
+            Resource[] array = (Resource[]) 
project.getBuild().getTestResources().toArray( new Resource[0] );
             for ( int i = 0; i < array.length; i++ )
             {
                 writer.startElement( "property" );

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

Reply via email to