ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@locus.apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant ProjectHelper.java
Date Wed, 29 Nov 2000 10:36:20 GMT
bodewig     00/11/29 02:36:18

  Modified:    src/main/org/apache/tools/ant ProjectHelper.java
  Log:
  Only set the project name if it has one (the name attribute of
  <project> has been set).
  
  Revision  Changes    Path
  1.36      +4 -2      jakarta-ant/src/main/org/apache/tools/ant/ProjectHelper.java
  
  Index: ProjectHelper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/ProjectHelper.java,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- ProjectHelper.java	2000/10/19 11:30:19	1.35
  +++ ProjectHelper.java	2000/11/29 10:36:15	1.36
  @@ -252,8 +252,10 @@
   
               project.setDefaultTarget(def);
   
  -            project.setName(name);
  -            if (name != null) project.addReference(name, project);
  +            if (name != null) {
  +                project.setName(name);
  +                project.addReference(name, project);
  +            }
   
               if (id != null) project.addReference(id, project);
   
  
  
  

Mime
View raw message