By default javadoc only includes docs for public and protected classes and members. Since your variable is declared as package private, it's javadoc will not be included by default. Using Ant's javadoc task, you can specify a value for the access attribute. The default value is protected, matching javadoc's default. You can set access to public, protected, package, or private. You can either declare your variable to have a larger scope (either public or protected), or you can specify a larger scope as follows:
<javadoc access="package" ... > ... </javadoc> > -----Original Message----- > From: Dave Pawson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 10, 2004 12:16 PM > To: Ant Users List > Subject: javadoc task > > I have a java file I use simply to hold string > values used elsewhere. > public class xyz{ > /** > * description > */ > String x = "......"; > > > } > > javadoc is not picking up the docstrings for output. > > Is there an ant property I need to set for this please, > or does javadoc not pick up docstrings without a method? > > > > > -- > Regards DaveP. > XSLT&Docbook FAQ > http://www.dpawson.co.uk/xsl > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
