ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gle...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant Main.java
Date Mon, 05 Mar 2001 14:52:28 GMT
glennm      01/03/05 06:52:27

  Modified:    src/main/org/apache/tools/ant Main.java
  Log:
  Displaying default target failed when there wasn't a description.
  
  Revision  Changes    Path
  1.32      +1 -4      jakarta-ant/src/main/org/apache/tools/ant/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/Main.java,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- Main.java	2001/03/03 22:31:31	1.31
  +++ Main.java	2001/03/05 14:52:23	1.32
  @@ -570,16 +570,13 @@
           String defaultTarget = project.getDefaultTarget();
           if (defaultTarget != null && !"".equals(defaultTarget)) { // shouldn't
need to check but...
               Vector defaultName = new Vector();
  -            Vector defaultDesc = new Vector();
  +            Vector defaultDesc = null;
               defaultName.addElement(defaultTarget);
   
               int indexOfDefDesc = topNames.indexOf(defaultTarget);
               if (indexOfDefDesc >= 0) {
                   defaultDesc.addElement(topDescriptions.elementAt(indexOfDefDesc));
  -            } else {
  -                defaultDesc.addElement("");
               }
  -
               printTargets(defaultName, defaultDesc, "Default target:", maxLength);
   
           }
  
  
  

Mime
View raw message