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 230829 - Branding - Resource bundle in generated jars have a wrong name
Summary: Branding - Resource bundle in generated jars have a wrong name
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Kozeny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-06 08:33 UTC by AndiMb
Modified: 2013-06-20 12:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Branded application (16.76 KB, application/zip)
2013-06-20 08:57 UTC, Martin Kozeny
Details
jar file with wrong bundle.properties (1.43 KB, application/x-java-archive)
2013-06-20 10:42 UTC, AndiMb
Details
Netbeans Project of application6 incl. build folder (16.71 KB, application/zip)
2013-06-20 11:50 UTC, AndiMb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description AndiMb 2013-06-06 08:33:12 UTC
Hi,

if I change or add something to the default translations in a Netbeans Platform application with the branding->Resouce Bundles menu of the application the needed jar folders in the branding folder of the project/application are generated. Afterwards there are two files, e.g. bundle.properties and bundle_de.properties, in the corresponding folders. If I build the application the jar are generated, e.g. org-netbeans-core-windows.jar. There the property files have a different name bundle_$(app_name).properties and bundle_de_$(app_name).properties. And the german file is not used. I think they should be named bundle_$(app_name)_de.properties.

Andreas
Comment 1 Martin Kozeny 2013-06-20 08:57:33 UTC
Created attachment 136068 [details]
Branded application

Hi Andreas,

thank you for your comment. I've tried to reproduce your problem by creating ant NB Platform App named application6. After that I've changed resource bundle for org/netbeans/core/windows in Resource Bundles tab and also in Internationalization Resource Bundles tab for en_us language mutation. Then I built the app and I can see in the location build/cluster/modules/locale org-netbeans-core-windows_application6.jar containing package org.netbeans.core.windows and org.netbeans.core.windows.view.ui both with Bundle_application6.properties file and org-netbeans-core-windows_application6_en_us.jar containing package org.netbeans.core.windows containing Bundle_application6_en_us.properties which fulfills your pattern Bundle_$(app_name)_$(language).properties. I think everything works fine.
Comment 2 AndiMb 2013-06-20 10:42:28 UTC
Created attachment 136071 [details]
jar file with wrong bundle.properties
Comment 3 AndiMb 2013-06-20 10:42:48 UTC
This is quite strange. If I download your application6, open it with NetBeans IDE 7.3 (Build 201306052037) (all updates installed) under Linux and build the application, I'm still getting the same error. The Bundle is called  Bundle_en_us_application6.properties. I attached the org-netbeans-core-windows.jar.

Andreas
Comment 4 Martin Kozeny 2013-06-20 11:37:46 UTC
Is this jar on path application6/build/cluster/modules/locale? There should exists jar per locale. Look at the project's build folder I've attached. Using NB Dev Build 201306100004 on Ubuntu 12.10.
Comment 5 Martin Kozeny 2013-06-20 11:39:09 UTC
Could you please attach your whole app with build folder?
Comment 6 AndiMb 2013-06-20 11:50:09 UTC
Created attachment 136078 [details]
Netbeans Project of application6 incl. build folder
Comment 7 AndiMb 2013-06-20 11:52:11 UTC
In my case there is just one jar with different Bundle files inside. It was the jar file from application6/build/cluster/modules/locale.
Comment 8 Martin Kozeny 2013-06-20 12:54:01 UTC
Very strange. Please try to use latest Dev Build if it happens again. I am going to check building of branding.