Thank you! Thank you!!
I was about to report this same problem! I had traced it
as far as having something to do with comments, but
hadn't figure out what the cause was....
On a related note, I give javadoc task a list of packagenames,
and yet it persists in looking at files that are NOT in the list.
Is that what I should expect to see, or is there another bug
lurking??
Finally, I have a question about timing. When I see these
commit messages, I assume they will be in the next day's
3:19 AM "jakarta-ant.src.zip" file...
[EMAIL PROTECTED] wrote:
> conor 00/07/14 08:02:36
>
> Modified: src/main/org/apache/tools/ant/taskdefs Javadoc.java
> Log:
> Minor bug fixes in Javadoc.
>
> 1. handle package statements that use tabs.
> 2. Fix minor bug in comment parsing.
>
> The parsing bug was pointed out by Johan Granstrom <[EMAIL PROTECTED]> but
> I have not used his patch directly.
>
> Revision Changes Path
> 1.17 +6 -1
> 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.16
> retrieving revision 1.17
> diff -u -r1.16 -r1.17
> --- Javadoc.java 2000/07/14 08:25:52 1.16
> +++ Javadoc.java 2000/07/14 15:02:33 1.17
> @@ -859,7 +859,8 @@
> log("Could not evaluate package for " + file,
> Project.MSG_WARN);
> return null;
> }
> - if (line.trim().startsWith("package ")) {
> + if (line.trim().startsWith("package ") ||
> + line.trim().startsWith("package\t")) {
> name = line.substring(8, line.indexOf(";")).trim();
> break;
> }
> @@ -931,6 +932,10 @@
> c = in.read();
> if (c == '*') {
> c = in.read();
> + while (c == '*' && c != -1) {
> + c = in.read();
> + }
> +
> if (c == '/') {
> c = read();
> break;
>
>
>