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 251630 - bowerrc points to wrong directory
Summary: bowerrc points to wrong directory
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Tools (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
: 251632 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-04-03 12:04 UTC by Vladimir Riha
Modified: 2015-04-12 15:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (77.53 KB, text/plain)
2015-04-03 12:04 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2015-04-03 12:04:24 UTC
Created attachment 153021 [details]
IDE log

Please try following:
 - create a new HTML5/JS Application with Twitter Bootstrap template
 - remove created .bowerrc
 - go to project properties and change Site Root to public_html/js
 - create a new .bowerrc file with the new wizard
 => the content is

{
    "directory": "js/bower_components"
}



while it should be

{
    "directory": "public_html/js/bower_components"
}


Thank you


Product Version: NetBeans IDE Dev (Build web-main-2146-on-20150403)
Java: 1.8.0_40; Java HotSpot(TM) Client VM 25.40-b25
Runtime: Java(TM) SE Runtime Environment 1.8.0_40-b25
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2015-04-03 12:06:17 UTC
The same happens in PHP project when Web root is set to [project dir]/folder1/folder2, then .bowerrc contains path folder2/bower_components
Comment 2 Tomas Mysik 2015-04-03 12:36:25 UTC
*** Bug 251632 has been marked as a duplicate of this bug. ***
Comment 3 Tomas Mysik 2015-04-05 05:52:02 UTC
Fixed, thanks.

http://hg.netbeans.org/web-main/rev/6ea7deb81828
Comment 4 Tomas Mysik 2015-04-05 05:53:27 UTC
BTW this works fine in HTML5 and PHP projects (not sure about other project types; feel free to create issues and assign them to me, I would do it).

Thanks.
Comment 5 Quality Engineering 2015-04-06 01:17:55 UTC
Integrated into 'main-silver', will be available in build *201504060001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/6ea7deb81828
User: Tomas Mysik <tmysik@netbeans.org>
Log: #251630 - bowerrc points to wrong directory
Comment 6 Vladimir Riha 2015-04-12 15:15:16 UTC
Verified for all mentioned cases, thank you. I reported issue 251780 for Java Web project. 

Product Version: NetBeans IDE Dev (Build 201504110001)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.13.0-45-generic running on amd64; UTF-8; en_US (nb)