ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant Project.java
Date Fri, 13 Dec 2002 22:00:06 GMT
costin      2002/12/13 14:00:05

  Modified:    src/main/org/apache/tools/ant Project.java
  Log:
  getDescription() now computes the description ( on demand ) using
  the tree.
  
  If ProjectHelperImpl is used - no differences should be visible.
  
  Revision  Changes    Path
  1.122     +6 -1      jakarta-ant/src/main/org/apache/tools/ant/Project.java
  
  Index: Project.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/Project.java,v
  retrieving revision 1.121
  retrieving revision 1.122
  diff -u -r1.121 -r1.122
  --- Project.java	11 Dec 2002 19:45:42 -0000	1.121
  +++ Project.java	13 Dec 2002 22:00:05 -0000	1.122
  @@ -67,6 +67,7 @@
   import org.apache.tools.ant.input.InputHandler;
   import org.apache.tools.ant.types.FilterSet;
   import org.apache.tools.ant.types.FilterSetCollection;
  +import org.apache.tools.ant.types.Description;
   import org.apache.tools.ant.util.FileUtils;
   import org.apache.tools.ant.util.JavaEnvUtils;
   import org.apache.tools.ant.util.WeakishReference;
  @@ -694,6 +695,10 @@
        *         been set.
        */
       public String getDescription() {
  +        if( description== null ) {
  +            description=Description.getDescription(this);
  +        }
  +
           return description;
       }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message