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 251021 - Add file based mapping
Summary: Add file based mapping
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Preprocessors (SASS, LESS, ...) (show other bugs)
Version: 8.1
Hardware: All All
: P2 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-09 07:51 UTC by Vladimir Riha
Modified: 2015-07-22 19:49 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2015-03-09 07:51:31 UTC
I've seen it few times on Stackoverflow that users wonder if it is possible to specifically set mapping per file, not just per folder. Would it be possible to add such support? Either as another table to the mapping panel or allow the mapping to have rows with both folders and files in the CSS (input) column and folders only in the Less/Scss columns


Thanks
Comment 1 Tomas Mysik 2015-06-03 05:44:19 UTC
So, this should be possible:

dir -> dir
file -> file
file -> dir

And this would be invalid:

dir -> file

(The target file would be overwritten by different input files.)

Please, correct me if I am wrong, thanks.
Comment 2 Tomas Mysik 2015-06-03 05:45:11 UTC
Also - one would need to put more specific rules first so we will need Up and Down buttons.

Thanks.
Comment 3 Tomas Mysik 2015-06-03 05:46:08 UTC
And "file" means "*.css" (it has .css extension).
Comment 4 Tomas Mysik 2015-06-25 09:37:04 UTC
Should be done now, Láďo please verify. Thanks.

http://hg.netbeans.org/web-main/rev/363d818ff576
Comment 5 Quality Engineering 2015-06-26 04:51:45 UTC
Integrated into 'main-silver', will be available in build *201506260309* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/363d818ff576
User: Tomas Mysik <tmysik@netbeans.org>
Log: #251021 - Add file based mapping
Comment 6 Vladimir Riha 2015-07-22 19:49:10 UTC
I tried it with Less and seems to work fine.

Thank you


Product Version: NetBeans IDE Dev (Build 201507200001)
Java: 1.7.0_80; Java HotSpot(TM) Client VM 24.80-b11
Runtime: Java(TM) SE Runtime Environment 1.7.0_80-b15
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
User directory: /home/vriha/.netbeans/devcvbnnbnbvnbvnbv