maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1500854 - /maven/plugins/trunk/maven-remote-resources-plugin/src/main/java/org/apache/maven/plugin/resources/remote/ProcessRemoteResourcesMojo.java
Date Mon, 08 Jul 2013 17:30:11 GMT
Author: dkulp
Date: Mon Jul  8 17:30:10 2013
New Revision: 1500854

URL: http://svn.apache.org/r1500854
Log:
[MRRESOURCES-62] Handle locations of test-jars as well

Modified:
    maven/plugins/trunk/maven-remote-resources-plugin/src/main/java/org/apache/maven/plugin/resources/remote/ProcessRemoteResourcesMojo.java

Modified: maven/plugins/trunk/maven-remote-resources-plugin/src/main/java/org/apache/maven/plugin/resources/remote/ProcessRemoteResourcesMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-remote-resources-plugin/src/main/java/org/apache/maven/plugin/resources/remote/ProcessRemoteResourcesMojo.java?rev=1500854&r1=1500853&r2=1500854&view=diff
==============================================================================
--- maven/plugins/trunk/maven-remote-resources-plugin/src/main/java/org/apache/maven/plugin/resources/remote/ProcessRemoteResourcesMojo.java
(original)
+++ maven/plugins/trunk/maven-remote-resources-plugin/src/main/java/org/apache/maven/plugin/resources/remote/ProcessRemoteResourcesMojo.java
Mon Jul  8 17:30:10 2013
@@ -1021,7 +1021,14 @@ public class ProcessRemoteResourcesMojo
                         if ( s[0].equals( p.getGroupId() ) && s[1].equals( p.getArtifactId()
) &&
                             s[2].equals( p.getVersion() ) )
                         {
-                            artifactFile = new File( p.getBuild().getOutputDirectory() );
+                            if ( s.length >= 4 && "test-jar".equals( s[3] ) )

+                            {
+                                artifactFile = new File( p.getBuild().getTestOutputDirectory()
);
+                            } 
+                            else 
+                            {
+                                artifactFile = new File( p.getBuild().getOutputDirectory()
);
+                            }
                         }
                     }
                 }



Mime
View raw message