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 244029 - Config/Test directory cannot be outside project directory
Summary: Config/Test directory cannot be outside project directory
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on: 245803
Blocks:
  Show dependency tree
 
Reported: 2014-04-23 12:59 UTC by Michel Graciano
Modified: 2014-07-19 10:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample project (3.67 KB, application/zip)
2014-04-24 11:44 UTC, Michel Graciano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Graciano 2014-04-23 12:59:56 UTC
When creating a HTML5 project, it should be possible to use relative path for tests and confs folders. Without this support, it is almost impossible to use HTML5 project for already existing source base.

There is a workaround that is update the project.properties file, which works but the UI is in an invalid state.
Comment 1 Vladimir Riha 2014-04-23 13:26:45 UTC
I'm not sure I understand, but if I create a new HTML5 project with existing resources, the wizard is not asking for test/confs directories. If I then go to Project Properties, I can use relative paths without any problem
Comment 2 Michel Graciano 2014-04-23 13:39:19 UTC
Sorry, I forgot to add a 'little' detail in this. The configuration and unit tests should accept folders underneath project folder too. Sorry about forgetting it.
Comment 3 Tomas Mysik 2014-04-24 06:56:33 UTC
Sorry, the directories are stored as relative paths (if possible). Please, attach your project.properties so we can look at it or provide _exact_ steps to reproduce.

Simply reopen this issue, thanks.
Comment 4 Michel Graciano 2014-04-24 11:44:45 UTC
Created attachment 146919 [details]
Sample project

As you can see, in the Sources configuration at project properties UI, there is a error against Unit Tests. If you fix it, a similar issue raises against config folder too.
Comment 5 Tomas Mysik 2014-04-24 11:54:25 UTC
Well, your Site/Test/Config directories are apparently outside of your project directory - this can be seen in Project Properties dialog (e.g. "../src/main/webapp").

Sorry, I really don't see anything to be fixed here.
Comment 6 Michel Graciano 2014-04-24 12:15:07 UTC
The issue is not about the site root folder, but about the tests and configuration files which are mandatory today to be underneath project root folder, but for our needs those files are outside the project too.

As stated before, I can workaround it by editing the project.properties file by hand, but I want to do this using the UI, and it is impossible because there is a validation against it.
Comment 7 Michel Graciano 2014-04-24 12:17:36 UTC
I have tested with an updated IDE version.

Product Version: NetBeans IDE Dev (Build 20140422-549e28a599af)
Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b56
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b43
Comment 8 Tomas Mysik 2014-04-24 12:20:31 UTC
(In reply to Michel Graciano from comment #6)
> The issue is not about the site root folder, but about the tests and
> configuration files which are mandatory today to be underneath project root
> folder, but for our needs those files are outside the project too.

Ha, finally we know what is the issue here, thanks :) Changing subject accordingly... Also, not P2 since the workaround is easy.

We will look at it, thanks.
Comment 9 Michel Graciano 2014-04-24 12:28:49 UTC
I am little in a rush so I think I wasn't as clear as I could have been since the beginning :-D

Thanks for the help folks. Just let me know if you need anything else. Please, just post here the changeset, I would like to test it as soon as available in the mian repo.
Comment 10 Tomas Mysik 2014-07-18 07:29:01 UTC
Done, however Láďo please test it so we are sure that everything (moving project, testing project etc.) works as before.

Thanks.

http://hg.netbeans.org/web-main/rev/bfb9abf30b6d
Comment 11 Vladimir Riha 2014-07-18 15:22:40 UTC
Sure, will do it on Monday.
Comment 12 Quality Engineering 2014-07-19 10:18:07 UTC
Integrated into 'main-silver', will be available in build *201407190718* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/bfb9abf30b6d
User: Tomas Mysik <tmysik@netbeans.org>
Log: #244029 - Config/Test directory cannot be outside project directory