maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r934867 - /maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingResult.java
Date Fri, 16 Apr 2010 13:37:26 GMT
Author: bentmann
Date: Fri Apr 16 13:37:25 2010
New Revision: 934867

URL: http://svn.apache.org/viewvc?rev=934867&view=rev
Log:
o Fixed format of project id

Modified:
    maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingResult.java

Modified: maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingResult.java
URL: http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingResult.java?rev=934867&r1=934866&r2=934867&view=diff
==============================================================================
--- maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingResult.java
(original)
+++ maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingResult.java
Fri Apr 16 13:37:25 2010
@@ -56,7 +56,9 @@ class DefaultProjectBuildingResult
     public DefaultProjectBuildingResult( MavenProject project, List<ModelProblem> problems,
                                          ArtifactResolutionResult dependencyResolutionResult
)
     {
-        this.projectId = ( project != null ) ? project.getId() : "";
+        this.projectId =
+            ( project != null ) ? project.getGroupId() + ':' + project.getArtifactId() +
':' + project.getVersion()
+                            : "";
         this.pomFile = ( project != null ) ? project.getFile() : null;
         this.project = project;
         this.problems = problems;



Mime
View raw message