简体   繁体   中英

How to set -private for javadoc in ant build.xml

I want to create the javadoc my project with ant, but I don't now how to make it there. In terminal I would execute javadoc -private ... but how I have to change mu build.xml to get the same result?

<target name="doc" description="generate documentation">                   
    <mkdir dir="${doc}"/>                                                  
    <javadoc sourcepath="${src}" destdir="${doc}"/>                        
</target>

Use <javadoc sourcepath="${src}" destdir="${doc}" access="private"/> . Also, consider using an IDE that provides suggestions and autocomplete for things like these.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM