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.
steps: Create new CSS copy some png into images directory somewhere in your project use style builder to add background image -> image is copied once more into directory of CSS style, but there is no reason to copy it - it should be just addressed relatively
reproducible, the responsible code should be reimplemented since it is still partially based on java.io.File-s
fixed Committing 1 file to repository for CSS Visual Editor Support: /space/hg/main/css.visual/src/org/netbeans/modules/css/visual/ui/BackgroundImageUrlDialog.java The current behaviour is following: 1) the edited file is within a webmodule: a. if the selected file is within the same webmodule a relative path to the file is used b. if the file is outside of the webmodule the file is copied to the same folder as is the edited file and relative path is used 2) the edited file IS NOT in a webmodule: a. relative path (up to the filesystem root) is always used; the file is never copied I can imagine someone may want to restrict the 2a. to the project root and then copy the file like in 1b. I can do that is someone has a strong opinion about that.
I agree with described behavior and I try to verify it, but while using a CSS file inside module and adding an image outside module (1b) no copy is done and relative path is used instead.
To find the webmodule root I need a dependency to the web module api which resides in j2ee cluster. The css.* modules resides in the gsf cluster :-(. OTOH it is a minor priority issue.
future=>later
NetBeans.org Migration: changing resolution from LATER to WONTFIX