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 2019/01/04 22:25:35 UTC

[maven] branch MNG-6405 created (now 9c6bdb6)

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

slachiewicz pushed a change to branch MNG-6405
in repository https://gitbox.apache.org/repos/asf/maven.git.


      at 9c6bdb6  [MNG-6405] Fix basedir in MavenProject.deepCopy.

This branch includes the following new commits:

     new 9c6bdb6  [MNG-6405] Fix basedir in MavenProject.deepCopy.

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] 01/01: [MNG-6405] Fix basedir in MavenProject.deepCopy.

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

slachiewicz pushed a commit to branch MNG-6405
in repository https://gitbox.apache.org/repos/asf/maven.git

commit 9c6bdb6e4832e0add8c165ab76f42770f9dc2a13
Author: Jesse Glick <jg...@apache.org>
AuthorDate: Thu Jan 3 17:20:05 2019 -0500

    [MNG-6405] Fix basedir in MavenProject.deepCopy.
---
 maven-core/src/main/java/org/apache/maven/project/MavenProject.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/maven-core/src/main/java/org/apache/maven/project/MavenProject.java b/maven-core/src/main/java/org/apache/maven/project/MavenProject.java
index fd7ab40..fd02557 100644
--- a/maven-core/src/main/java/org/apache/maven/project/MavenProject.java
+++ b/maven-core/src/main/java/org/apache/maven/project/MavenProject.java
@@ -1207,7 +1207,8 @@ public class MavenProject
         // disown the parent
 
         // copy fields
-        setFile( project.getFile() );
+        file = project.file;
+        basedir = project.basedir;
 
         // don't need a deep copy, they don't get modified or added/removed to/from - but make them unmodifiable to be
         // sure!