You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Dave Pawson <da...@dpawson.co.uk> on 2004/11/10 20:16:23 UTC

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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


RE: javadoc task

Posted by Charles Daniels <cj...@yahoo.com>.
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:davep@dpawson.co.uk] 
> 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: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org