I’ve got a custom ANT task which is supposed to generate a javadoc-style overview of all @todo comments in code. It is defined as follows:

 

<target name="document-todo">

        <taskdef name="todo"

            classname="xdoclet.modules.doc.DocumentDocletTask"

            classpathref="xdoclet.classpath"

            />

        <todo destdir="${javadoc.todo.dir}">

            <fileset dir="${src.dir}">

                <include name="**/*.java"/>

            </fileset>

 

            <info tag="@todo"/>

        </todo>

    </target>

 

 

The task runs just fine. It does complain about :

 

   [todo] Create info lists for todo tags

     [todo] INFO:    Some classes refer to other classes that were not found among the sources or on the classpath.

     [todo]          (Perhaps the referred class doesn't exist? Hasn't been generated yet?)

     [todo]          The referring classes do not import any fully qualified classes matching these classes.

     [todo]          However, since no packages are imported, xjavadoc has assumed that the referred classes

     [todo]          belong to the same package as the referring class. The classes are:

 

But as far as I can see it succeeds in finding the classes and mapping them anyway, I draw that conclusion because the above is followed by a lot of :

 

[todo] C:\build\src\Therastone\com\therastone\servlet\gcc\GCCSeriesCreate2.java --> GCCVSUtils qualified to com.therastone.servlet.gcc.GCCVSUtils

 

Anyway. After execution I find a javadoc structure generated in my javadoc.todo.dir , but there is no content whatsoever. I know I have some @todo tags in the code, but they just don’t show up in the generated overview ? Any clues as to why ?

 

//linus Nikander – [EMAIL PROTECTED]

 

Reply via email to