com.ibm.websphere.ant.tasks
Class ModuleValidator
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- com.ibm.websphere.ant.tasks.ModuleValidator
-
- All Implemented Interfaces:
- java.lang.Cloneable, org.eclipse.wst.validation.internal.provisional.core.IReporter
Deprecated.
public class ModuleValidator extends org.apache.tools.ant.Task implements org.eclipse.wst.validation.internal.provisional.core.IReporter
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:
To use the task, include the following taskdef in your build.xml file and run ant with the ws_ant script.- Version:
- 1.0
- See Also:
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
-
-
Constructor Summary
Constructors Constructor and Description ModuleValidator()
Deprecated.
-
Method Summary
Methods Modifier and Type Method and Description 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
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Method Detail
-
execute
public void execute() throws org.apache.tools.ant.BuildException
Deprecated.- Overrides:
execute
in classorg.apache.tools.ant.Task
- Throws:
org.apache.tools.ant.BuildException
- See Also:
Task.execute()
-
setSrc
public void setSrc(java.lang.String src)
Deprecated.Sets the src module path.- Parameters:
src
- The path to the module to validate
-
validate
protected 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
Deprecated.- Throws:
org.eclipse.wst.validation.internal.core.ValidationException
java.lang.Exception
-
validateEARFile
protected void validateEARFile(com.ibm.etools.commonarchive.EARFile earFile, org.eclipse.wst.validation.internal.provisional.core.IReporter reporter) throws java.lang.Exception
Deprecated.- Throws:
java.lang.Exception
-
validateWARFile
protected void validateWARFile(com.ibm.etools.commonarchive.WARFile warFile, org.eclipse.wst.validation.internal.provisional.core.IReporter reporter) throws java.lang.Exception
Deprecated.- Throws:
java.lang.Exception
-
validateEJBJarFile
protected void validateEJBJarFile(com.ibm.etools.commonarchive.EJBJarFile ejbJarFile, org.eclipse.wst.validation.internal.provisional.core.IReporter reporter) throws java.lang.Exception
Deprecated.- Throws:
java.lang.Exception
-
validateApplicationClientFile
protected void validateApplicationClientFile(com.ibm.etools.commonarchive.ApplicationClientFile clientFile, org.eclipse.wst.validation.internal.provisional.core.IReporter reporter) throws java.lang.Exception
Deprecated.- Throws:
java.lang.Exception
-
addMessage
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
Deprecated.- Specified by:
addMessage
in interfaceorg.eclipse.wst.validation.internal.provisional.core.IReporter
- Throws:
org.eclipse.wst.validation.internal.provisional.core.MessageLimitException
- See Also:
IReporter.addMessage(IValidator, IMessage)
-
displaySubtask
public void displaySubtask(org.eclipse.wst.validation.internal.provisional.core.IValidator validator, org.eclipse.wst.validation.internal.provisional.core.IMessage message)
Deprecated.- Specified by:
displaySubtask
in interfaceorg.eclipse.wst.validation.internal.provisional.core.IReporter
- See Also:
IReporter.displaySubtask(IValidator, IMessage)
-
getMessageAccess
public org.eclipse.wst.validation.internal.core.IMessageAccess getMessageAccess()
Deprecated.- See Also:
org.eclipse.wst.validation.internal.provisional.core.IReporter#getMessageAccess()
-
isCancelled
public boolean isCancelled()
Deprecated.- Specified by:
isCancelled
in interfaceorg.eclipse.wst.validation.internal.provisional.core.IReporter
- See Also:
IReporter.isCancelled()
-
removeAllMessages
public void removeAllMessages(org.eclipse.wst.validation.internal.provisional.core.IValidator origin, java.lang.Object object)
Deprecated.- Specified by:
removeAllMessages
in interfaceorg.eclipse.wst.validation.internal.provisional.core.IReporter
- See Also:
IReporter.removeAllMessages(IValidator, Object)
-
removeAllMessages
public void removeAllMessages(org.eclipse.wst.validation.internal.provisional.core.IValidator origin)
Deprecated.- Specified by:
removeAllMessages
in interfaceorg.eclipse.wst.validation.internal.provisional.core.IReporter
- See Also:
IReporter.removeAllMessages(IValidator)
-
removeMessageSubset
public void removeMessageSubset(org.eclipse.wst.validation.internal.provisional.core.IValidator validator, java.lang.Object obj, java.lang.String groupName)
Deprecated.- Specified by:
removeMessageSubset
in interfaceorg.eclipse.wst.validation.internal.provisional.core.IReporter
- See Also:
IReporter.removeMessageSubset(IValidator, Object, String)
-
setFailonerror
public void setFailonerror(boolean failonerror)
Deprecated.Sets the failonerror. Default is false.- Parameters:
failonerror
- The failonerror to set
-
getMessages
public java.util.List getMessages()
Deprecated.- Specified by:
getMessages
in interfaceorg.eclipse.wst.validation.internal.provisional.core.IReporter
-
-