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 246310 - Location "Resources" should be one of the available options when creating new HTML file
Summary: Location "Resources" should be one of the available options when creating new...
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-06 16:44 UTC by wissenstein
Modified: 2016-07-07 08:55 UTC (History)
1 user (show)

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 wissenstein 2014-08-06 16:44:21 UTC
Product Version = NetBeans IDE 8.0 (Build 201403101706)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0_11
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.11-b03

Some projects need HTML files in folders treated as project resource containers. These are, for example, projects using frameworks Thymeleaf or Wicket. But in NetBeans-8.0 there is no means anymore to create HTML files as resources, and developers are forced to create them in locations "Source Packages" or "Web Pages" and to then move them to the resource container manually.
So, a possibility to create HTML files in location "Resources" should be added to NetBeans.
Please find here some test cases regarding this issue.

====
GRADLE PROJECT

Create a Single Gradle project.
In pane "Projects" expand its node "Resources [Main]". Node "<default package>" appears on that pane.
Right-click on node "<default package>" and choose "New/HTML...". Dialog box "New HTML" appears.

Actual result: drop-down list "Location" contains the only option "Source Packages [Java]", and there is no means to create new HTML file in location "Resources".
Expected result: drop-down list "Location" contains also option "Resources [Main]", and this option is selected when the dialog box is open under conditions described above.

====
MAVEN PROJECT

Create a Maven Web Application.
In pane "Projects" right-click on the project and choose "New/Folder...". Dialog box "New Folder" appears.
Set folder name "resources" and parent folder "src/main".
Click button "Finish". Node "Other Sources" appears in pane "Projects".
Expand nodes "Other Sources" and then "src/main/resources". Node "<default package>" appears.
Right-click on node "<default package>" and choose "New/HTML...". Dialog box "New HTML" appears.

Actual result: drop-down list "Location" contains only two options: "Web Pages" and "Source Packages", option "Web Pages" is selected, and there is no means to create new HTML file in location "src/main/resources".
Expected result: drop-down list "Location" contains also option "src/main/resources", and this option is selected when the dialog box is open under conditions described here above.

====
Best regards
Oleksij Lupandin aka wissenstein
Comment 1 David Konecny 2014-08-13 22:52:06 UTC
Passing to Maven component first.
Comment 2 Martin Balin 2016-07-07 08:55:04 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss