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 188286 - Image resources not properly copied over to dist area.
Summary: Image resources not properly copied over to dist area.
Status: RESOLVED INVALID
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: David Simonek
URL: http://bitbucket.org/danielburrell/de...
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2010-07-01 17:32 UTC by TerabyteUK
Modified: 2010-07-02 13:38 UTC (History)
1 user (show)

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 TerabyteUK 2010-07-01 17:32:23 UTC
Create a package with some java files in.
Now create a sub package called img, and place an image file inside.
When the code is compiled, the img package and it's image resource is not copied over to the .class area. 

Example project which demonstrates the problem can be found here:
http://bitbucket.org/danielburrell/decent-irc/downloads

This is not a test case, it is a small project I'm working on which demonstrates the problem. 

The com.solong.irc.systemTray package contains a SystemTrayView class which requests a resource on line 59: img/tray.gif which should be available since img/tray.gif exists in the systemTray package.
However when the project is run from the IDE, if you inspect the 
decent-irc\target\classes\com\solong\irc\systemTray 
directory, you see there is no img folder, and no tray.gif either.

This is a resource and it should be copied over. Currently having to manually copy it over as a workaround. 
Eclipse automatically handles this.
Comment 1 Jesse Glick 2010-07-02 13:38:33 UTC
In Maven apps, resources must be in src/main/resources.