| <?xml version="1.0" encoding="UTF-8"?> |
| <!DOCTYPE html |
| PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html> |
| <head> |
| <!-- /******************************************************************************* |
| * Copyright (c) 2000, 2005 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ --> |
| <link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" /> |
| <title>Setting Web project properties</title> |
| </head> |
| <body id="twprjset"><a name="twprjset"><!-- --></a> |
| |
| <h1 class="topictitle1">Setting Web project properties</h1> |
| <div><div class="skipspace"> <p>There are many Web project properties that you can set that affect |
| |
| the phases in the lifecycle of your project and its dependencies on other |
| |
| Web resources and Web development processes. You might want to verify or update |
| |
| these properties after you have updated an existing project or have imported |
| |
| Web resources into a project .</p> |
| <p>To view or set Web project properties, |
| |
| do the following: </p> |
| </div> |
| <ol><li class="skipspace"><span>Right-click on a Web Project, and from the pop-up menu select <span><span class="uicontrol">Properties</span></span>.</span></li> |
| <li class="skipspace"><span>Select a property type in the left pane of the Properties dialog |
| |
| to view or update properties in the Web project. For each property, you can |
| |
| apply changes and modify default settings. Based on whether you have a static |
| |
| or a dynamic Web project, the following property types are available:</span> <dl><dt class="bold">Info</dt> |
| <dd>Provides general information about project type, location, and modification |
| |
| status. </dd> |
| <dt class="bold">BeanInfo Path (Dynamic Web project only)</dt> |
| <dd>If you select the Enable Beaninfo Introspection on this project, you can |
| |
| specify the contents and order of Java Bean search paths to provide Bean information |
| |
| relevant to the project. You can add, remove, and reorder (using the <span>Up</span> and <span>Down</span> buttons) |
| |
| the packages used to include Bean information.</dd> |
| <dt class="bold">Builders</dt> |
| <dd>Add, remove, or reorder external tools in the build order. When you select <span class="uicontrol">New</span> to |
| |
| create a new external tool to the list, the New External Tool wizard opens, |
| |
| so that you can define the new build tool.</dd> |
| <dt class="bold">J2EE (Dynamic Web project only)</dt> |
| <dd>Identify Web level specification and modify context root and Web content |
| |
| folder name</dd> |
| <dt class="bold">Java Build |
| |
| Path (Dynamic Web project only)</dt> |
| <dd>View or change the information about the Java build path that you supplied when creating |
| |
| the project using the <span>Create a DynamicWeb Project</span> wizard. Whenever |
| |
| the Web project is rebuilt, any class files that are created or updated will |
| |
| be output to the specified output folder. <div class="note"><span class="notetitle">Note: </span>A library entry on the Java build |
| |
| path will remain there unless the actual JAR file is deleted from the WEB-INF/lib |
| |
| folder. If you remove a library path entry but not the JAR file, the library |
| |
| entry will be re-added to the path automatically.</div> |
| </dd> |
| <dt class="bold">Java Compiler |
| |
| (Dynamic Web project only)</dt> |
| <dd>Define whether to use workspace settings or project setting for compiling Java code, |
| |
| including settings for Problems, Style, Compliance and Classfiles, and Build |
| |
| Path.</dd> |
| <dt class="bold">Javadoc Location (Dynamic Web project only)</dt> |
| <dd>Define a default location (URL) for any Javadoc available to the project.</dd> |
| <dt class="bold">Java JAR |
| |
| Dependencies (Dynamic Web project only)</dt> |
| <dd>Define and reorder JAR dependencies for the project. Note that these dependencies |
| |
| may differ based on a Web project's association with multiple Enterprise application |
| |
| projects.</dd> |
| <dt class="bold">JSP Task Tags</dt> |
| <dd>Add, edit, or remove JSP task tags and assign tag priorities. These "to |
| |
| do" items appear in your Tasks view.</dd> |
| <dt class="bold">JSP Compilation</dt> |
| <dd>Specify when in the build process a JSP should be set to compile</dd> |
| <dt class="bold">JSP Fragment (dynamic Web project only)</dt> |
| <dd>Define default encoding, page directive, and content type values for JSP |
| |
| fragment documents in the web project.</dd> |
| <dt class="bold">Links Validation/Refactoring</dt> |
| <dd>Define project-level link management and validation settings. These settings |
| |
| override corresponding settings in the Workbench Preference settings for the |
| |
| current project.</dd> |
| <dt class="bold">Project References</dt> |
| <dd>Reference other Web projects that exist on your workbench workspace.</dd> |
| <dt class="bold">Server</dt> |
| <dd>Select the server instance used to perform necessary development, test, |
| |
| and publishing functions for the project.</dd> |
| <dt class="bold">Validation</dt> |
| <dd>Specify which validators should run for the project, and whether validation |
| |
| should occur automatically when resource updates are written to the project. |
| |
| The available validators are based on the types of resources in your project. |
| |
| By default, validators are automatically run when you save resources in a |
| |
| Web project. If you do not want validators to run automatically when you save |
| |
| these resources, enable the <span class="uicontrol">Override validation</span> preferences |
| |
| option and disable the <span class="uicontrol">Run validation automatically when you save |
| |
| changes to resources</span> option. <div class="note"><span class="notetitle">Note: </span>You can also disable automatic |
| |
| validation (and builds) for all projects by disabling <span class="uicontrol">Perform build |
| |
| automatically on resource modification</span> from the <span class="uicontrol">Workbench</span> properties. |
| |
| If you disable automatic builds, you can manually run a build (and validation) |
| |
| by selecting <span class="menucascade"><span class="uicontrol">Project</span> > <span class="uicontrol">Rebuild |
| |
| project</span></span>.</div> |
| </dd> |
| <dt class="bold">Web Content Settings</dt> |
| <dd>Provide any applicable Web content settings for a Web project. You can |
| |
| specify the document type, CSS profile, and target device.</dd> |
| <dt class="bold">Web Project Features</dt> |
| <dd>Select the features you want to be enabled for your Web project, such |
| |
| as Page Template support.</dd> |
| </dl> |
| </li> |
| <li class="skipspace"><span>When you have completed updates to Web project settings, click <span><span class="uicontrol">OK</span></span> to |
| |
| save and close the Properties dialog.</span></li> |
| </ol> |
| </div> |
| </body> |
| </html> |