You open the Project Properties dialog box by right-clicking any HTML5/JS project node in the Projects window and choosing Properties. The Sources page lets you set the locations for the site root, sources, and the folder for tests.
You can modify the following properties in the Sources page of the dialog box.
Property | Description |
---|---|
Project Folder |
(read-only) The folder on your local system that contains the project metadata and usually the site root. |
Site Root Folder |
The contents of this folder will be available through the web server on the production site. It contains the HTML, CSS and JS files that are publicly accessible/visible. This folder typically contains the index.html file. |
Source Folder | The folder in the project that serves for server-side sources (typically node.js JS files). If the project is a JS library, JavaScript files should be placed in this folder (not in the Site Root Folder). |
Unit Tests Folder |
The folder in the project that contains the unit tests. This folder is the default location for JavaScript unit test files when you run tests with the JS Test Driver test runner. |
Encoding |
Choose the character encoding that you want the IDE to apply when it saves and displays project source files. |
The project character encoding determines how the IDE interprets characters in your source files. The IDE displays and saves any new files you create using the encoding set by the project in which they reside. The default character encoding used with projects is UTF-8. Use the Encoding drop-down list to change the character encoding used with the project.
Related Topics
Developing Applications with NetBeans IDE,
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |