On Jun 17, 2004, at 4:02 PM, Kyle Korndoerfer wrote:
Brief overview...

- Several classes named ...\form\*Form.java
- Several classes named ...\action\*Action.java that are all children
of ...\action\FooBase.java (several helper methods common to all of our
struts Action classes)
- When we run the webdoclet task, we get a lexical error for the
FooBase.java file and the resulting struts-config.xml file is missing
tag data from other Action & Form classes

========== BEGIN: build.xml snippet ====================

<webdoclet force="true"
        destdir="${meta-data.home}"
        mergedir="${meta-data.home}">
    <fileset dir="${src.home}">
        <include name="**/*Form.java" />
        <include name="**/*Action.java" />
    </fileset>

I replied on the ant-user list also. I think you need to ensure that FooBase.java is in this fileset. Why not include it? Have you tried that?


[webdoclet] Error parsing File
C:\<...snip...>\action\FooBase.java:Lexical error:
xjavadoc.TokenMgrError: Lexical error at line 191, column 17.

Could you provide us with the code for FooBase.java? As I said on the ant-user list, I suspect something fishy with this file.


It looks like the FooBase.java file is being included (even though it
doesn't match the FileSet) because it is the parent of all the Action
classes. Is there some sort-of tag that should be placed in the
FooBase.java class to let XJavaDoc know to skip it or is there
something else that I'm missing?

XDoclet needs to know about parent classes - why not include it to make XDoclet happy?


The strange part is that about 5% of the time we don't get this error
at all and all of the config files are generated correctly! The other
95% of the time we get the lexical error (even if nothing has changed
in the environment or in the files).

Now that is strange!

        Erik



-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to