ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Javadoc.java
Date Thu, 17 May 2001 09:56:22 GMT
conor       01/05/17 02:56:22

  Modified:    src/main/org/apache/tools/ant/taskdefs Javadoc.java
  Log:
  Quote the -group parameter to Javadoc
  
  Submitted by:	Jay Glanville <dickon@nortelnetworks.com>
  
  Revision  Changes    Path
  1.49      +9 -8      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Javadoc.java
  
  Index: Javadoc.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Javadoc.java,v
  retrieving revision 1.48
  retrieving revision 1.49
  diff -u -r1.48 -r1.49
  --- Javadoc.java	2001/05/11 06:22:44	1.48
  +++ Javadoc.java	2001/05/17 09:56:22	1.49
  @@ -173,6 +173,9 @@
           public String getName() {
               return name;
           }
  +        public String toString() {
  +            return getName();
  +        }
       }
   
       public static class SourceFile {
  @@ -661,16 +664,14 @@
           }
   
           public String getPackages() {
  -            String p = null;
  +            StringBuffer p = new StringBuffer( "\"" );
               for (int i = 0; i < packages.size(); i++) {
  -                PackageName pn = (PackageName)packages.elementAt(i);
  -                if (p == null || p.equals("")) {
  -                    p = pn.getName();
  -                } else {
  -                    p += ":" + pn.getName();
  -                }
  +                p.append( packages.elementAt( i ).toString() );
  +                if ( i > 0 )
  +                    p.append( ":" );
               }
  -            return p;
  +            p.append( "\"" );
  +            return p.toString();
           }
       }
       
  
  
  

Mime
View raw message