ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@locus.apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Javadoc.java
Date Wed, 14 Jun 2000 12:42:15 GMT
rubys       00/06/14 05:42:15

  Modified:    src/main/org/apache/tools/ant/taskdefs Javadoc.java
  Log:
  Javadoc 1.2 multiple group support
  Submitted by: Donald Leslie <Donald_Leslie@lotus.com>
  
  Revision  Changes    Path
  1.8       +24 -2     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.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- Javadoc.java	2000/03/03 14:15:42	1.7
  +++ Javadoc.java	2000/06/14 12:42:14	1.8
  @@ -366,10 +366,32 @@
                   argList.addElement("-linkoffline");
                   argList.addElement(linkoffline);
               }
  +
  +            // Javadoc 1.2 rules:
  +            //   Multiple -group args allowed.
  +            //   Each arg includes 3 strings: -group [name] [packagelist].
  +            //   Elements in [packagelist] are colon-delimited.
  +            //   An element in [packagelist] may end with the * wildcard.
  +
  +            // Ant javadoc task rules for group attribute:
  +            //   Args are comma-delimited.
  +            //   Each arg is 2 space-delimited strings.
  +            //   E.g., group="XSLT_Packages org.apache.xalan.xslt*,XPath_Packages orgapache.xalan.xpath*"
               if (group != null) {
  -                argList.addElement("-group");
  -                argList.addElement(group);
  +                StringTokenizer tok = new StringTokenizer(group, ",", false);
  +                while (tok.hasMoreTokens()) {
  +                  String grp = tok.nextToken().trim();
  +                  int space = grp.indexOf(" ");
  +                  if (space > 0){
  +                    String name = grp.substring(0, space);
  +                    String pkgList = grp.substring(space + 1);
  +                    argList.addElement("-group");
  +                    argList.addElement(name);
  +                    argList.addElement(pkgList);
  +                  }
  +                }
               }
  +
               if (stylesheetfile != null) {
                   argList.addElement("-stylesheetfile");
                   argList.addElement(stylesheetfile.getAbsolutePath());
  
  
  

Mime
View raw message