Browse Source

Oops - make the new Javadoc work under JDK 1.1

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267713 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 25 years ago
parent
commit
d42633d63a
1 changed files with 9 additions and 15 deletions
  1. +9
    -15
      src/main/org/apache/tools/ant/taskdefs/Javadoc.java

+ 9
- 15
src/main/org/apache/tools/ant/taskdefs/Javadoc.java View File

@@ -521,22 +521,16 @@ public class Javadoc extends Exec {
// add the group arguments
if (groups.size() != 0) {
String title = null;
String packages = null;
GroupArgument ga = null;
for (int i = 0; i < groups.size(); i++) {
ga = (GroupArgument)groups.get(i);
if (ga != null) {
title = ga.getTitle();
packages = ga.getPackages();
}
if (title != null) {
argList.addElement("-group");
argList.addElement(title);
if (packages != null) {
argList.addElement(packages);
}
for (Enumeration e = groups.elements(); e.hasMoreElements(); ) {
GroupArgument ga = (GroupArgument)e.nextElement();
String title = ga.getTitle();
String packages = ga.getPackages();
if (title == null || packages == null) {
throw new BuildException("The title and packages must be specified for group elements.");
}
argList.addElement("-group");
argList.addElement(title);
argList.addElement(packages);
}
}



Loading…
Cancel
Save