IBM WebSphere Application ServerTM
Release 7

com.ibm.websphere.ant.tasks
Class ModuleValidator

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by com.ibm.websphere.ant.tasks.ModuleValidator
All Implemented Interfaces:
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:

<wsValidateModule src="path to the ear/war/ejb-jar/client to validate"/> The src attribute is required and specifies the path, full or relative, to the ear/war/ejb-jar/client jar module you wish to validate
To use the task, include the following taskdef in your build.xml file and run ant with the ws_ant script. <taskdef name="wsValidateModule" classname="com.ibm.websphere.ant.tasks.ModuleValidator"/>

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

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

ModuleValidator

public ModuleValidator()
Deprecated. 
Method Detail

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Deprecated. 
Overrides:
execute in class org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.eclipse.wst.validation.internal.provisional.core.IReporter

IBM WebSphere Application ServerTM
Release 7