blob: 0d4138ab2a2d97f7c39bf1b86c062adb20569243 [file] [log] [blame]
<?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 content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta name="copyright" content="Copyright (c) 2000, 2009 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 https://www.eclipse.org/legal/epl-2.0/. Contributors: IBM Corporation - initial API and implementation" />
<meta name="DC.rights.owner" content="(C) Copyright 2000, 2009" />
<meta content="public" name="security" />
<meta content="index,follow" name="Robots" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta content="task" name="DC.Type" />
<meta name="DC.Title" content="Validating code in enterprise applications" />
<meta name="abstract" content="The workbench includes validators that check certain files in your enterprise application module projects for errors." />
<meta name="description" content="The workbench includes validators that check certain files in your enterprise application module projects for errors." />
<meta content="build validation, enabling, code validation, overview, validation" name="DC.subject" />
<meta content="build validation, enabling, code validation, overview, validation" name="keywords" />
<meta scheme="URI" name="DC.Relation" content="../topics/rvalerr.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/rvalidators.html" />
<meta content="XHTML" name="DC.Format" />
<meta content="tjval" name="DC.Identifier" />
<meta content="en-us" name="DC.Language" />
<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
<title>Validating code in enterprise applications</title>
</head>
<body id="tjval"><a name="tjval"><!-- --></a>
<h1 class="id_title">Validating code in enterprise applications</h1>
<div class="id_taskbody"><p class="id_shortdesc">The workbench includes validators that
check certain files in your enterprise application module projects for errors.</p>
<div class="id_context"> <p class="anchor_topictop" />
<p>By
default, the workbench validates your files automatically after any build,
including automatic builds. You can also begin the validation process manually
without building.</p>
<p>On the workbench Preferences window, you can enable
or disable validators to be used on your projects. Also, you can enable or
disable validators for each enterprise application module project individually
on the Properties page for that project.</p>
<p>Each validator can apply to
certain types of files, certain project natures, and certain project facets.
When a validator applies to a project facet or nature, the workbench uses
that validator only on projects that have that facet or nature. Likewise,
most validators apply only to certain types of files, so the workbench uses
those validators only on those types of files.</p>
<p>To validate your files,
complete the following steps:</p>
</div>
<ol class="id_steps">
<li class="stepexpand"><span>Click <span class="menucascade"><span class="uicontrol">Window</span> &gt; <span class="uicontrol">Preferences</span>
</span> and select <span class="uicontrol">Validation</span> in the left pane.</span>
The Validation page of the Preferences window lists the validators
available in your project and their settings.</li>
<li class="stepexpand"><strong>Optional: </strong><span>Review the check box options available near
the top of the window to customize your validation settings:</span>
<table class="choicetableborder" summary="" cellspacing="0" cellpadding="4" rules="rows" frame="hsides" border="1">
<thead><tr><th valign="bottom" id="N100A9-option">Option</th>
<th valign="bottom" id="N100A9-desc">Description</th></tr></thead>
<tbody>
<tr><td valign="top" headers="N100A9-option" id="N100C2"><strong>Allow projects to override these preference settings</strong></td>
<td valign="top" headers="N100A9-desc N100C2">Select to set individual validation settings for one or more of your
projects.</td>
</tr>
<tr><td valign="top" headers="N100A9-option" id="N100D2"><strong>Suspend all validators</strong></td>
<td valign="top" headers="N100A9-desc N100D2">Select to prevent
validation at the global level.</td>
</tr>
<tr><td valign="top" headers="N100A9-option" id="N100E1"><strong>Save all modified resources automatically prior to validating</strong></td>
<td valign="top" headers="N100A9-desc N100E1">Select to save resources you have modified before the validation begins.</td>
</tr>
<tr><td valign="top" headers="N100A9-option" id="N100F1"><strong>Show a confirmation dialog when performing manual validation</strong></td>
<td valign="top" headers="N100A9-desc N100F1">Select to show an informational dialog after a manual validation request has completed.</td>
</tr>
</tbody></table>
</li>
<li class="stepexpand"><span>In the list of validators, select the check boxes next to each
validator you want to use at the global level.</span> Each validator has
a check box to specify whether it is used on manual validation and/or on build
validation.</li>
<li class="stepexpand"><span>Tune a validator by clicking
the button in the <span class="uicontrol">Settings</span> column.</span>
Not all validators have additional settings.</li>
<li class="stepexpand"><span>Begin the validation process by one of the following methods:</span>
<ul>
<li>Right-click a project and click <span class="uicontrol">Validate</span>.</li>
<li>Start a build.</li>
</ul>
</li>
</ol>
<div class="id_result">Any errors found by the validators
are listed in the Problems view.<p>If you want to set individual validation
settings for one or more of your projects, see <a href="tjvalglobalpref.html" title="For a given project, you can override&#10;the global validation preferences.">Overriding global validation preferences</a> for
more information.</p>
</div>
<div class="id_postreq"><p class="anchor_topicbottom" />
</div>
</div>
<div><div class="relref"><strong>Related reference</strong><br />
<div><a href="../topics/rvalerr.html" title="This table lists the common error messages you may encounter when you validate your projects.">Common validation errors and solutions</a></div>
<div><a href="../topics/rvalidators.html" title="This table lists the validators that are available for the different project types and gives a brief description of each validator.">J2EE Validators</a></div>
</div>
</div>
</body>
</html>