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 224374 - Wrong icon file name in branding jar
Summary: Wrong icon file name in branding jar
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.3
Hardware: PC Linux
: P2 normal with 1 vote (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-02 11:23 UTC by veronika
Modified: 2013-01-02 13:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description veronika 2013-01-02 11:23:00 UTC
I want to use my branded icon 'cut_pressed.gif'. It is renamed to 'cut_brandingToken_pressed.gif' in branding jar file during compilation.

When loaded later by org.openide.util.ImageUtilities#getIcon(String, boolean) the icon is searched this way: 'cut_pressed_brandingToken.gif' so it is not loaded properly.

I think that problem is while searching for first underscore in filename in org.codehaus.mojo.nbm.BrandingMojo#destinationFileName(String), it should notice only underscore followed by locale.
Comment 1 Milos Kleint 2013-01-02 13:28:11 UTC
http://fisheye.codehaus.org/changelog/mojo/?cs=17811

fixed, according to how ant based support handles the paths.

3.10-SNAPSHOT of the nbm-maven-plugin uploaded to the snapshot repository at https://nexus.codehaus.org/content/repositories/snapshots/

next time please file issues against the nbm maven plugin at jira.codehaus.org/browse/MNBMODULE, thanks.