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 122870 - images should not be copied while setting background image using style builder
Summary: images should not be copied while setting background image using style builder
Status: RESOLVED WONTFIX
Alias: None
Product: web
Classification: Unclassified
Component: CSS Visual Tools (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-27 16:21 UTC by Jindrich Sedek
Modified: 2009-11-02 11:14 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 Jindrich Sedek 2007-11-27 16:21:41 UTC
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
Comment 1 Marek Fukala 2008-01-14 22:22:32 UTC
reproducible, the responsible code should be reimplemented since it is still partially based on java.io.File-s
Comment 2 Marek Fukala 2008-02-26 10:57:34 UTC
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.
Comment 3 Jindrich Sedek 2008-07-03 12:26:23 UTC
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.
Comment 4 Marek Fukala 2008-09-26 15:34:40 UTC
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.
Comment 5 Marek Fukala 2008-11-19 12:05:18 UTC
future=>later
Comment 6 Quality Engineering 2009-11-02 11:14:42 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX