This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
If your project defines public packages as well as the module.javadoc.packages property, its build always gets a warning that the property was changed from the default. This makes sense if the property is different than the set of public packages, but not if they are the same. The problem is that the package list builder in nbbuild/antsrc/org/netbeans/nbbuild/ParseProjectXml.java prepends a comma and adds spaces after each list item. The attached patch changes the javadoc packages list builder to be the same as the public packages list builder. Workaround: delete the module.javadoc.packages property, but I cannot find where that is documented.
Created attachment 29104 [details] Patch to ParseProjectXml.java to fix issue
It both property specify the same package you do not need to specify module.javadoc.packages at all. It is documented in this way $NB_BIN/harness/README.
Not everyone develops modules using the harness...
If you're not developing modules using the harness, then what's the problem? None of these properties are then relevant. And if you are, then as Martin said you do not need to specify the list of Javadoc packages since it is computed for you, unless you want to document non-public packages, in which case a warning is in order. So I still fail to understand the purpose of this patch. Anyway I agree with the first diff line - initial sep should in fact be ""; current code was a (harmless) typo. But not the second. The public packages list uses ", " so why should the Javadoc list use ","? I will therefore apply just the first line.
> If you're not developing modules using the harness, then what's the problem? I'm developing the jackpot module as a "top component", meaning its source tree is part of (but not yet committed to) the IDE source tree. You can duplicate this bug by going to the ant module, for example, and defining a modules.javadoc.packages property that matches its list of public packages. > The public packages list uses ", " so why should the Javadoc list use ","? The modules I emulated didn't include spaces in their modules.javadoc.packages properties, so I didn't either. However I agree with the P5 change, since I deleted the modules.javadoc.packages property from my project.
committed Up-To-Date 1.40 nbbuild/antsrc/org/netbeans/nbbuild/ParseProjectXml.java