blob: ff8753eae12661b7b28dcbb7feee99da7d479039 [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, 2006 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" />
<meta name="DC.rights.owner" content="(C) Copyright 2000, 2006" />
<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="validation, overview, code validation, automatic, build validation, enabling" name="DC.subject" />
<meta content="validation, overview, code validation, automatic, build validation, enabling" 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">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 Properties 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>Follow these steps to validate your files:</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>.</span></li>
<li class="stepexpand"><span>In the Preferences window, click <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"><span>If you want to set individual validation settings for one or more
of your projects, select the <span class="uicontrol">Allow projects to override these preference
settings</span> check box.</span></li>
<li class="stepexpand"><span>To prevent validation at the global level, select the <span class="uicontrol">Suspend
all validators</span> check box.</span> If you select this check
box, you can still enable validation at the project level.</li>
<li class="stepexpand"><span>If you want to save any resources you have modified before the
validation begins, select the <span class="uicontrol">Save all modified resources automatically
prior to validating</span> check box.</span></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 or on build
validation.</li>
<li class="stepexpand"><span>Choose an alternate implementation for a validator by clicking
the button in the <span class="uicontrol">Settings</span> column.</span> Not all
validators have alternate implementations.</li>
<li class="stepexpand"><span>Click <span class="uicontrol">OK</span>.</span></li>
<li class="stepexpand"><span>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>.</span></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">Run Validation</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.</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="You may encounter these common error messages 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>