简体   繁体   中英

How to set javadoc parameters in netbeans

I have just found out that javadoc is yet another program that is broken when it comes to Turkish locale and it won't fix. Luckily, there is a -locale option that I could set from command line. However, I don't want to work with cmd.exe. Is there a way to change parameters passed from netbeans to javadoc?

If you're not using Maven with Netbeans then you're using Netbeans' own Ant build scripts.

In the nbproject folder inside your project you'll find a project.properties file that has a javadoc.encoding entry.

In build-impl.xml , add the locale option:

<javadoc ... locale="en_US" >

Or, in project properties/build/documenting/add additional options:

-locale "en_US"

In NetBeans 9, you can right-click on the project and select Properties then select Documenting. You can add javadoc options (eg -locale) in the box labeled 'Additional Javadoc Options:'. I don't have NetBeans 7 to verify it works the same way in that version.

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