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 245804 - Absolute path in project properties for site/test/conf folders
Summary: Absolute path in project properties for site/test/conf folders
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 8.0.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-18 15:28 UTC by Vladimir Riha
Modified: 2014-07-23 06:52 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 Vladimir Riha 2014-07-18 15:28:49 UTC
If you set site/test/conf folder outside of project root and close project properties, then if you reopen project properties, all paths are relative. It would be imo more readable if absolute path was used instead. If you move such project, path could look like

../../../../../tmp/AngularJSPhoneCat/app

while absolute would be much simpler

/tmp/AngularJSPhoneCat/app



Product Version: NetBeans IDE Dev (Build web-main-1055-on-20140718)
Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Linux version 3.13.0-32-generic running on i386; UTF-8; en_US (nb)
Comment 1 Tomas Mysik 2014-07-21 05:26:50 UTC
Make sense, will do it (let's say for cases if the path starts with "../../"). Thanks.
Comment 2 Tomas Mysik 2014-07-21 10:45:15 UTC
Should be fixed now, only "<relative-subpath>" or "../<path>" should be present, absolute path otherwise.

Thanks.

http://hg.netbeans.org/web-main/rev/9b26598a4f2f
Comment 3 Quality Engineering 2014-07-22 02:32:43 UTC
Integrated into 'main-silver', will be available in build *201407220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/9b26598a4f2f
User: Tomas Mysik <tmysik@netbeans.org>
Log: #245804 - Absolute path in project properties for site/test/conf folders
Comment 4 Vladimir Riha 2014-07-22 08:53:07 UTC
I'm sorry to reopen, it works OK for test/config, but site root is still the same, always relative path.


Product Version: NetBeans IDE Dev (Build 201407220001)
Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Linux version 3.13.0-32-generic running on i386; UTF-8; en_US (nb)
Comment 5 Tomas Mysik 2014-07-22 09:54:33 UTC
(In reply to Vladimir Riha from comment #4)
> I'm sorry to reopen, it works OK for test/config, but site root is still the
> same, always relative path.

Should be fixed now, thanks for catching that.

http://hg.netbeans.org/web-main/rev/220e64f80f98
Comment 6 Quality Engineering 2014-07-23 02:09:07 UTC
Integrated into 'main-silver', will be available in build *201407230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/220e64f80f98
User: Tomas Mysik <tmysik@netbeans.org>
Log: #245804 cont'd - Absolute path in project properties for site/test/conf folders

Handle SiteRoot as well.
Comment 7 Vladimir Riha 2014-07-23 06:52:05 UTC
Thanks, verified

Product Version: NetBeans IDE Dev (Build 201407230001)
Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Linux version 3.13.0-32-generic running on i386; UTF-8; en_US (nb)