| <?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 lang="en-us" xml:lang="en-us"> |
| <head> |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| <!-- /******************************************************************************* |
| * 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>Enabling build validation</title> |
| </head> |
| <body id="tjvalbuild"><a name="tjvalbuild"><!-- --></a> |
| <h1 class="topictitle1">Enabling build validation</h1> |
| <div><p>You can enable validation to occur during a build of a project.</p> |
| <div class="section"> <p>Build validation occurs when you select either <span class="uicontrol">Build |
| Project</span>, <span class="uicontrol">Build All</span>, <span class="uicontrol">Rebuild |
| Project</span>, or <span class="uicontrol">Rebuild All</span>. These build options |
| appear in a pop-up menu only if automatic builds are disabled. Each of the |
| build commands starts an incremental build of the project or workspace. The |
| incremental build validates the project using the validators that are enabled |
| for the project. The incremental build also validates any projects that are |
| referenced by the project being validated, using the validators that are enabled |
| for each respective project. The rebuild commands start a full build (all |
| previous build output is deleted and everything is recreated).</p> |
| <p>To enable |
| build validation: </p> |
| </div> |
| <ol><li><span>In the Project Explorer view, right-click your project and select <span class="uicontrol">Properties</span>.</span></li> |
| <li><span>On the <span class="uicontrol">Validation</span> page, select the <span class="uicontrol">Override |
| validation preferences</span> check box to override global preferences |
| for this project.</span></li> |
| <li><span>Ensure that the validators that you want to run are selected.</span></li> |
| <li><span>Select the <span class="uicontrol">Run validation when you manually |
| build <project_name></span> check box. </span></li> |
| <li><span>Click <span class="uicontrol">OK</span>.</span></li> |
| </ol> |
| </div> |
| <div> |
| <div class="familylinks"> |
| <div class="parentlink"><strong>Parent topic:</strong> <a href="../topics/tjval.html">Validating code in enterprise applications</a></div> |
| </div> |
| <div class="reltasks"><strong>Related tasks</strong><br /> |
| <div><a href="../topics/tjvalauto.html" title="If you want validation to occur automatically during an automatic incremental build that occurs as a result of a resource change, you can enable automatic code validation.">Enabling automatic code validation</a></div> |
| <div><a href="../topics/tjvaldisable.html" title="You can disable one or more validators for a project.">Disabling a validator</a></div> |
| <div><a href="../topics/tjvalglobalpref.html" title="For a given project, you can override the global validation preferences.">Overriding global validation preferences</a></div> |
| <div><a href="../topics/tjvalmanual.html" title="When you run a manual validation, all resources in the selected project are validated with the validators that are selected on the Validation page of the project Properties dialog.">Manually validating code</a></div> |
| <div><a href="../topics/tjvalselect.html" title="You can select specific validators to run for a project during manual and automatic code validation.">Selecting code validators</a></div> |
| </div> |
| </div></body> |
| </html> |