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.
When using a localized version of Netbeans, and planning to build a localized version of a Netbeans Platform Application, module localization files are not copied by the build process This is caused by the zip.platform.included.files selector, in turn using the org.netbeans.nbbuild.ModuleSelector itself not including subdirectories of a module, and thus excluding the locale subdirectories from the process At first, the ModuleSelector class should be refined to include localization files if they are present. Ultimately, there should be some kind of utility to configure the inclusion of localisation files (in the branding UI, for example)
A possible workaround for this problem is to re-define the build-launchers target in your build-impl.xml file, and particularly the selector, like this: <selector id="zip.platform.included.files"> <or> <!-- patch check bug #199496 http://netbeans.org/bugzilla/show_bug.cgi?id=199496--> <filename name="**/locale/**/*.jar"/> <!-- end patch check bug #199496 http://netbeans.org/bugzilla/show_bug.cgi?id=199496--> <custom classpath="${harness.dir}/tasks.jar" classname="org.netbeans.nbbuild.ModuleSelector"> <param name="excludeModules" value="${disabled.modules}"/> <!-- XXX inc/exc clusters --> <param name="includeClusters" value="${enabled.clusters}"/> <param name="excludeClusters" value="${disabled.clusters}"/> <param name="updateTrackingFiles" value="${zip.platform.update.tracking}"/> </custom> </or> </selector>
(In reply to comment #1) > re-define the build-launchers target in your build-impl.xml file Rather, override the target in build.xml. The issue is that no update_tracking/*.xml claims the locale files, and untracked files are never packed into a distro (since the list of files to pack is given by consulting tracking files for the selected module list). *** This bug has been marked as a duplicate of bug 133901 ***