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.

Bug 199496 - locatization files are not copied when packaging a NBP application
Summary: locatization files are not copied when packaging a NBP application
Status: RESOLVED DUPLICATE of bug 133901
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 7.0
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-17 12:24 UTC by fabien_nisol
Modified: 2011-06-23 19:47 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fabien_nisol 2011-06-17 12:24:42 UTC
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)
Comment 1 fabien_nisol 2011-06-17 22:16:04 UTC
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>
Comment 2 Jesse Glick 2011-06-23 19:47:04 UTC
(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 ***