blob: 31be3df8e6f5af1a9b8b5dc3b471755d312c67e5 [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>New Web Project with Existing Sources Wizard: Existing Sources and Libraries</title>
<link rel="stylesheet" href="ide.css" title="Oracle BLAFDoc" type="text/css"/>
</head>
<body>
<p><a id="org.netbeans.modules.web.project.ui.wizards.PanelSourceFolders" name="org.netbeans.modules.web.project.ui.wizards.PanelSourceFolders"></a></p>
<div id="NBCSH4092"><!-- infolevel="all" infotype="General" --><a id="sthref542" name="sthref542"></a>
<h1>New Web Project with Existing Sources Wizard: Existing Sources and Libraries</h1>
<a name="BEGIN" id="BEGIN"></a>
<p>Use to specify web pages and other resources when creating a new standard project from an existing web application source folder.
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG1039">
<param name="text" value="<html><u>How?</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>
<p>Your existing web application source does not have to adhere to any particular directory structure. You specify the locations of the configuration files, libraries, and source roots. The only requirement is that the module contain a valid <code dir="ltr">web.xml</code> deployment descriptor.</p>
<p>In the Existing Sources and Libraries page, you specify the following properties:</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-t48">Element</th>
<th align="left" valign="bottom" id="r1c2-t48">Description</th>
</tr>
</thead>
<tbody>
<tr align="left" valign="top">
<td align="left" id="r2c1-t48" headers="r1c1-t48">
<p>Web Pages Folder</p>
</td>
<td align="left" headers="r2c1-t48 r1c2-t48">Specifies the location of your web pages. You must have at least a valid web.xml deployment descriptor in the web pages folder to complete the wizard.
<p><b>Note:</b> The IDE does not convert deployment descriptors for unsupported application servers to the Glassfish application server deployment descriptors. There are external tools you can use for this purpose.</p>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r3c1-t48" headers="r1c1-t48">
<p>WEB-INF Content</p>
</td>
<td align="left" headers="r3c1-t48 r1c2-t48">Specifies the location of the application's WEB-INF content.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r4c1-t48" headers="r1c1-t48">
<p>Libraries Folder</p>
</td>
<td align="left" headers="r4c1-t48 r1c2-t48">Specifies the location of the class libraries that the web application depends on. All JAR files in this folder are added to the web application project's classpath and packaged with the application for deployment.
<p><b>Note:</b> The IDE only scans this folder once when you create the project. After the project is created, adding JAR files to this folder outside the IDE does not add them to the module's classpath. You have to add them manually through the Libraries tab of the module's Project Properties dialog box.</p>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r5c1-t48" headers="r1c1-t48">
<p>Source Package Folders</p>
</td>
<td align="left" headers="r5c1-t48 r1c2-t48">Specifies each of the project's source package folders (containing source packages).</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r6c1-t48" headers="r1c1-t48">
<p>Test Package Folders</p>
</td>
<td align="left" headers="r6c1-t48 r1c2-t48">Specifies each of the project's test package folders (containing Unit tests). You can have multiple source roots in a standard project, with the following exceptions:
<ul>
<li>The source root cannot already exist in another IDE project.</li>
<li>The source root cannot already be added to another compilation unit of the same project. For example, a source root that is registered under Test Packages cannot be added to the list of Source Packages.</li>
<li>All of the source roots are packaged into the same WAR file and share the same classpath.</li>
</ul>
<p><b>Note:</b> If you have a source root that needs to be used by several projects, you should create a separate project for the source root and set up compilation dependencies between the projects.
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG389">
<param name="text" value="<html><u>More</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>
</td>
</tr>
</tbody>
</table>
<br />
<!-- -->
<p>When you click <b>Finish</b>, the folder specified as the Location property is used to determine where the web pages, Java sources and libraries are found. The project is created on your computer and opened in the IDE. You can view its logical structure in the Projects window and its file structure in the Files window.</p>
<a id="NBCSH4098" name="NBCSH4098"></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>
<!-- -->
<!-- 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>