maven-m2-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: maven-components/maven-core/src/main/java/org/apache/maven/project MavenProject.java
Date Fri, 15 Apr 2005 05:46:14 GMT
brett       2005/04/14 22:46:14

  Modified:    maven-core/src/main/java/org/apache/maven/project
                        MavenProject.java
  Log:
  PR: MNG-281
  show id if name is null in reactor
  
  Revision  Changes    Path
  1.41      +9 -1      maven-components/maven-core/src/main/java/org/apache/maven/project/MavenProject.java
  
  Index: MavenProject.java
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-core/src/main/java/org/apache/maven/project/MavenProject.java,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- MavenProject.java	13 Apr 2005 00:27:55 -0000	1.40
  +++ MavenProject.java	15 Apr 2005 05:46:13 -0000	1.41
  @@ -367,7 +367,15 @@
   
       public String getName()
       {
  -        return model.getName();
  +        // TODO: this should not be allowed to be null.
  +        if ( model.getName() != null )
  +        {
  +            return model.getName();
  +        }
  +        else
  +        {
  +            return getId();
  +        }
       }
   
       public void setVersion( String version )
  
  
  

Mime
View raw message