You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2020/04/12 16:19:44 UTC

[maven-resolver-ant-tasks] branch pr/1 created (now 9dac999)

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

slachiewicz pushed a change to branch pr/1
in repository https://gitbox.apache.org/repos/asf/maven-resolver-ant-tasks.git.


      at 9dac999  use a FileResource instead of PathElement for easier copy

This branch includes the following new commits:

     new 9dac999  use a FileResource instead of PathElement for easier copy

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven-resolver-ant-tasks] 01/01: use a FileResource instead of PathElement for easier copy

Posted by sl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch pr/1
in repository https://gitbox.apache.org/repos/asf/maven-resolver-ant-tasks.git

commit 9dac999d363771ec60575d24ddb65ec31b76b207
Author: dprunier <do...@emc.com>
AuthorDate: Tue Jun 4 10:50:50 2019 -0400

    use a FileResource instead of PathElement for easier copy
    
    Closes #1
---
 .../java/org/apache/maven/resolver/internal/ant/tasks/Resolve.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/maven/resolver/internal/ant/tasks/Resolve.java b/src/main/java/org/apache/maven/resolver/internal/ant/tasks/Resolve.java
index 62b944a..c17e359 100644
--- a/src/main/java/org/apache/maven/resolver/internal/ant/tasks/Resolve.java
+++ b/src/main/java/org/apache/maven/resolver/internal/ant/tasks/Resolve.java
@@ -294,7 +294,8 @@ public class Resolve
                 path = new org.apache.tools.ant.types.Path( getProject() );
                 getProject().addReference( refid, path );
             }
-            path.setLocation( artifact.getFile() );
+            File file = artifact.getFile();
+            path.add( new FileResource( file.getParentFile(), file.getName() ) );
         }
 
     }