|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
com.ibm.websphere.ant.tasks.ModuleValidator
public class ModuleValidator
The wsValidateModule task performs validation of the deployment descriptor, extensions, and bindings documents of an EAR, WAR, EJB Jar, or Application Client Jar. Given the source jar file, it will execute the WebSphere validation logic against the jar and emit messages indicating errors, warnings, or information about the configuration and structure of your application. It looks at the standard J2EE deployment descriptors and the IBM WebSphere-specific bindings and extensions documents, if present. The structure of the wsValidateModule task is shown below:
THIS PRODUCT CONTAINS RESTRICTED MATERIALS OF IBM
5724-I63, 5724-H88 (C) COPYRIGHT International Business Machines Corp. 2002, 2004
All Rights Reserved * Licensed Materials - Property of IBM
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.
Source File: ModuleValidator.java
Creation Date: August 12, 2002
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.Task |
---|
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
project |
Constructor Summary | |
---|---|
ModuleValidator()
Deprecated. |
Method Summary | |
---|---|
void |
addMessage(org.eclipse.wst.validation.internal.provisional.core.IValidator origin,
org.eclipse.wst.validation.internal.provisional.core.IMessage message)
Deprecated. |
void |
displaySubtask(org.eclipse.wst.validation.internal.provisional.core.IValidator validator,
org.eclipse.wst.validation.internal.provisional.core.IMessage message)
Deprecated. |
void |
execute()
Deprecated. |
org.eclipse.wst.validation.internal.core.IMessageAccess |
getMessageAccess()
Deprecated. |
java.util.List |
getMessages()
Deprecated. |
boolean |
isCancelled()
Deprecated. |
void |
removeAllMessages(org.eclipse.wst.validation.internal.provisional.core.IValidator origin)
Deprecated. |
void |
removeAllMessages(org.eclipse.wst.validation.internal.provisional.core.IValidator origin,
java.lang.Object object)
Deprecated. |
void |
removeMessageSubset(org.eclipse.wst.validation.internal.provisional.core.IValidator validator,
java.lang.Object obj,
java.lang.String groupName)
Deprecated. |
void |
setFailonerror(boolean failonerror)
Deprecated. Sets the failonerror. |
void |
setSrc(java.lang.String src)
Deprecated. Sets the src module path. |
protected void |
validate(org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile archive,
org.eclipse.wst.validation.internal.provisional.core.IReporter reporter)
Deprecated. |
protected void |
validateApplicationClientFile(com.ibm.etools.commonarchive.ApplicationClientFile clientFile,
org.eclipse.wst.validation.internal.provisional.core.IReporter reporter)
Deprecated. |
protected void |
validateEARFile(com.ibm.etools.commonarchive.EARFile earFile,
org.eclipse.wst.validation.internal.provisional.core.IReporter reporter)
Deprecated. |
protected void |
validateEJBJarFile(com.ibm.etools.commonarchive.EJBJarFile ejbJarFile,
org.eclipse.wst.validation.internal.provisional.core.IReporter reporter)
Deprecated. |
protected void |
validateWARFile(com.ibm.etools.commonarchive.WARFile warFile,
org.eclipse.wst.validation.internal.provisional.core.IReporter reporter)
Deprecated. |
Methods inherited from class org.apache.tools.ant.Task |
---|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
getProject, setProject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModuleValidator()
Method Detail |
---|
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
Task.execute()
public void setSrc(java.lang.String src)
src
- The path to the module to validateprotected void validate(org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile archive, org.eclipse.wst.validation.internal.provisional.core.IReporter reporter) throws org.eclipse.wst.validation.internal.core.ValidationException, java.lang.Exception
org.eclipse.wst.validation.internal.core.ValidationException
java.lang.Exception
protected void validateEARFile(com.ibm.etools.commonarchive.EARFile earFile, org.eclipse.wst.validation.internal.provisional.core.IReporter reporter) throws java.lang.Exception
java.lang.Exception
protected void validateWARFile(com.ibm.etools.commonarchive.WARFile warFile, org.eclipse.wst.validation.internal.provisional.core.IReporter reporter) throws java.lang.Exception
java.lang.Exception
protected void validateEJBJarFile(com.ibm.etools.commonarchive.EJBJarFile ejbJarFile, org.eclipse.wst.validation.internal.provisional.core.IReporter reporter) throws java.lang.Exception
java.lang.Exception
protected void validateApplicationClientFile(com.ibm.etools.commonarchive.ApplicationClientFile clientFile, org.eclipse.wst.validation.internal.provisional.core.IReporter reporter) throws java.lang.Exception
java.lang.Exception
public void addMessage(org.eclipse.wst.validation.internal.provisional.core.IValidator origin, org.eclipse.wst.validation.internal.provisional.core.IMessage message) throws org.eclipse.wst.validation.internal.provisional.core.MessageLimitException
addMessage
in interface org.eclipse.wst.validation.internal.provisional.core.IReporter
org.eclipse.wst.validation.internal.provisional.core.MessageLimitException
IReporter.addMessage(IValidator,
IMessage)
public void displaySubtask(org.eclipse.wst.validation.internal.provisional.core.IValidator validator, org.eclipse.wst.validation.internal.provisional.core.IMessage message)
displaySubtask
in interface org.eclipse.wst.validation.internal.provisional.core.IReporter
IReporter.displaySubtask(IValidator,
IMessage)
public org.eclipse.wst.validation.internal.core.IMessageAccess getMessageAccess()
org.eclipse.wst.validation.internal.provisional.core.IReporter#getMessageAccess()
public boolean isCancelled()
isCancelled
in interface org.eclipse.wst.validation.internal.provisional.core.IReporter
IReporter.isCancelled()
public void removeAllMessages(org.eclipse.wst.validation.internal.provisional.core.IValidator origin, java.lang.Object object)
removeAllMessages
in interface org.eclipse.wst.validation.internal.provisional.core.IReporter
IReporter.removeAllMessages(IValidator, Object)
public void removeAllMessages(org.eclipse.wst.validation.internal.provisional.core.IValidator origin)
removeAllMessages
in interface org.eclipse.wst.validation.internal.provisional.core.IReporter
IReporter.removeAllMessages(IValidator)
public void removeMessageSubset(org.eclipse.wst.validation.internal.provisional.core.IValidator validator, java.lang.Object obj, java.lang.String groupName)
removeMessageSubset
in interface org.eclipse.wst.validation.internal.provisional.core.IReporter
IReporter.removeMessageSubset(IValidator, Object, String)
public void setFailonerror(boolean failonerror)
failonerror
- The failonerror to setpublic java.util.List getMessages()
getMessages
in interface org.eclipse.wst.validation.internal.provisional.core.IReporter
|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |