blob: 976c46c73fdc8df06fbf73c3433badb0b57f5c14 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<title>Standard Web Project Properties Dialog Box: Sources</title>
<link rel="stylesheet" href="ide.css" title="Oracle BLAFDoc" type="text/css"/>
</head>
<body>
<p><a id="CHDIHDGH" name="CHDIHDGH"></a><a id="org.netbeans.modules.web.project.ui.customizer.CustomizerSources" name="org.netbeans.modules.web.project.ui.customizer.CustomizerSources"></a></p>
<div id="NBCSH3996"><!-- infolevel="all" infotype="General" -->
<h1>Standard Web Project Properties Dialog Box: Sources</h1>
<a name="BEGIN" id="BEGIN"></a>
<p>You open the Standard Web Project Properties dialog box by right-clicking any standard Web project and choosing Properties.</p>
<p>Use to set the locations for commonly-used directories within the project folder of a Java web project, such as the <code dir="ltr">WEB-INF</code> and Web Pages folders. It also allows you to specify the project's source package and test package folders, set the JDK version that corresponds to the project's source/binary format, include or exclude classes to be compiled with the project, and set the default project character encoding.
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG372">
<param name="text" value="<html><u>How?</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>
<p>Use the buttons to the right of the panes to add, remove, and change the order of the package folders.</p>
<table summary="User interface elements and descriptions" dir="ltr" border="1" width="100%" frame="hsides" rules="groups" cellpadding="3" cellspacing="0">
<col width="24%" />
<col width="*" />
<thead>
<tr align="left" valign="top">
<th align="left" valign="bottom" id="r1c1-t36">Element</th>
<th align="left" valign="bottom" id="r1c2-t36">Description</th>
</tr>
</thead>
<tbody>
<tr align="left" valign="top">
<td align="left" id="r2c1-t36" headers="r1c1-t36">
<p>Project Folder</p>
</td>
<td align="left" headers="r2c1-t36 r1c2-t36">(Read-only) Lists the directory on your computer where the project sources are located.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r3c1-t36" headers="r1c1-t36">
<p>Web Pages Folder</p>
</td>
<td align="left" headers="r3c1-t36 r1c2-t36">Lists the webroot of the application. This is typically the web folder contained within the project folder.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r4c1-t36" headers="r1c1-t36">
<p>WEB-INF Folder</p>
</td>
<td align="left" headers="r4c1-t36 r1c2-t36">Lists the location of the <code dir="ltr">WEB-INF</code> directory contained in the Java web application project. The <code dir="ltr">WEB-INF</code> directory is typically contained within the application's webroot.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r5c1-t36" headers="r1c1-t36">
<p>Source Package Folders</p>
</td>
<td align="left" headers="r5c1-t36 r1c2-t36">Lists the location of the source package folders and the label used for them in the Project Properties window.
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG372">
<param name="text" value="<html><u>More</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r6c1-t36" headers="r1c1-t36">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Add Folder</p>
</td>
<td align="left" headers="r6c1-t36 r1c2-t36">Click to add a new package folder to the adjacent pane. In the <b>Add Source/Test Folder</b> dialog that displays, navigate to and select the folder containing the resources you want to add, then click <b>Open</b>. The resources are then added to the corresponding <b>Package Folders</b> pane.
<p><b>Note:</b> To edit the name of a package folder listed in either of the Package Folder panes, double-click the listed entry and type directly into the field.</p>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r7c1-t36" headers="r1c1-t36">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Remove</p>
</td>
<td align="left" headers="r7c1-t36 r1c2-t36">Select an entry in a <b>Package Folders</b> pane, then click the <b>Remove</b> button to delete it.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r8c1-t36" headers="r1c1-t36">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Move Up</p>
</td>
<td align="left" headers="r8c1-t36 r1c2-t36">Select an entry in a <b>Package Folders</b> pane, then click <b>Move Up</b> to have it listed higher in the pane. The order in which packages are listed corresponds to the order in which they display in the Projects window.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r9c1-t36" headers="r1c1-t36">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Move Down</p>
</td>
<td align="left" headers="r9c1-t36 r1c2-t36">Select an entry in a Package Folders pane, then click <b>Move Down</b> to have it listed lower in the pane. The order in which packages are listed corresponds to the order in which they display in the Projects window.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r10c1-t36" headers="r1c1-t36">
<p>Test Package Folders</p>
</td>
<td align="left" headers="r10c1-t36 r1c2-t36">Lists the location of the test package folders and the label used for them in the Project Properties window.
<p>Specifies the folder that the IDE uses when creating Unit tests. By default, when you create a project the IDE creates a test packages folder called test with the label Test Packages.</p>
<p>To create Unit tests with the IDE, a project must include a test package folder. If the test packages folder for your project is missing or unavailable, you can create a new folder in your project and then use this pane to designate the new folder as the Test Package folder.</p>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r11c1-t36" headers="r1c1-t36">
<p>Source/Binary Format</p>
</td>
<td align="left" headers="r11c1-t36 r1c2-t36">Set the lowest Java platform version with which the generated Java code should be compatible.
<p>This setting corresponds to the javac <code dir="ltr">-source</code> option. Setting the source/binary format helps prevent you from using Java language constructs that are not available in the platform version to which you want to deploy. However, setting the source/binary format does not ensure that the platform APIs are used compatibly with that platform version. To make sure that your application is fully compatible with an earlier Java platform version, you need to switch to the Libraries tab and set the Java Platform setting to the minimum version on which you plan to deploy.</p>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r12c1-t36" headers="r1c1-t36">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Includes/Excludes</p>
</td>
<td align="left" headers="r12c1-t36 r1c2-t36">Click the <b>Includes/Excludes</b> button if you want to include or exclude specific classes in or from compilation. In the Configure Includes and Excludes dialog, use regex patterns in the Includes and Excludes fields to specify which classes on the project classpath you want to have compiled. The Included Files and Excluded Files panes list the resources that will be compiled based on the supplied patterns.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r13c1-t36" headers="r1c1-t36">
<p>Encoding</p>
</td>
<td align="left" headers="r13c1-t36 r1c2-t36">Choose the character encoding that you want the IDE to apply when it saves and displays project source files.
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG2065">
<param name="text" value="<html><u>How?</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</td>
</tr>
</tbody>
</table>
<br />
<!-- -->
<table summary="User interface elements and descriptions" dir="ltr" border="1" width="100%" frame="hsides" rules="groups" cellpadding="3" cellspacing="0">
<col width="24%" />
<col width="*" />
<thead>
<tr align="left" valign="top">
<th align="left" valign="bottom" id="r1c1-t37">Element</th>
<th align="left" valign="bottom" id="r1c2-t37">Description</th>
</tr>
</thead>
<tbody>
<tr align="left" valign="top">
<td align="left" id="r2c1-t37" headers="r1c1-t37">
<p>Source/Binary Format</p>
</td>
<td align="left" headers="r2c1-t37 r1c2-t37">Choose the JDK version that applies to the lowest Java platform version with which the Java code in your project is compatible. Default options range from JDK 1.2 to 6.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r3c1-t37" headers="r1c1-t37">
<p>Includes/Excludes</p>
</td>
<td align="left" headers="r3c1-t37 r1c2-t37">Click the <b>Includes/Excludes</b> button if you want to include or exclude specific classes in or from compilation. In the <b>Configure Includes and Excludes</b> dialog, use regex patterns in the Includes and Excludes fields to specify which classes on the project classpath you want to have compiled. The Included Files and Excluded Files panes list the resources that will be compiled based on the supplied patterns.</td>
</tr>
</tbody>
</table>
<br />
<!-- -->
<a id="NBCSH4011" name="NBCSH4011"></a>
<hr><p><b>Related Topics</b></p>
<p><i>Developing Applications with NetBeans IDE</i>,
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG370">
<param name="text" value="<html><u>&quot;Using Java Project Templates&quot;</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>
<p><i>Developing Applications with NetBeans IDE</i>,
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG666">
<param name="text" value="<html><u>&quot;Creating a Unit Test&quot;</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>
<p><i>Developing Applications with NetBeans IDE</i>,
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG1111">
<param name="text" value="<html><u>&quot;Configuring a Web Application&quot;</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>
<!-- -->
<!-- Start Footer -->
<table summary="" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td align="left" width="86%"><a href="legal_notice.htm">
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements; and to You under the Apache License, Version 2.0.</a>
</td>
</tr>
</table>
<!-- -->
</body>
</html>