com.ibm.websphere.ant.tasks

Class ModuleValidator

  1. java.lang.Object
  2. extended byTask
  3. extended bycom.ibm.websphere.ant.tasks.ModuleValidator
All implemented interfaces:
org.eclipse.wst.validation.internal.provisional.core.IReporter

Deprecated.
  1. public class ModuleValidator
  2. extends Task
  3. 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

Constructor Summary

Constructor and Description
ModuleValidator()
Deprecated.

Method Summary

Modifier and Type Method and Description
  1. void
addMessage(org.eclipse.wst.validation.internal.provisional.core.IValidator origin,org.eclipse.wst.validation.internal.provisional.core.IMessage message)
Deprecated.
  1. void
displaySubtask(org.eclipse.wst.validation.internal.provisional.core.IValidator validator,org.eclipse.wst.validation.internal.provisional.core.IMessage message)
Deprecated.
  1. void
execute()
Deprecated.
  1. org.eclipse.wst.validation.internal.core.IMessageAccess
getMessageAccess()
Deprecated.
  1. java.util.List
getMessages()
Deprecated.
  1. boolean
isCancelled()
Deprecated.
  1. void
removeAllMessages(org.eclipse.wst.validation.internal.provisional.core.IValidator origin)
Deprecated.
  1. void
removeAllMessages(org.eclipse.wst.validation.internal.provisional.core.IValidator origin,java.lang.Object object)
Deprecated.
  1. void
removeMessageSubset(org.eclipse.wst.validation.internal.provisional.core.IValidator validator,java.lang.Object obj,java.lang.String groupName)
Deprecated.
  1. void
setFailonerror(boolean failonerror)
Deprecated. Sets the failonerror.
  1. void
setSrc(java.lang.String src)
Deprecated. Sets the src module path.
  1. protected
  2. void
validate(org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile archive,org.eclipse.wst.validation.internal.provisional.core.IReporter reporter)
Deprecated.
  1. protected
  2. void
validateApplicationClientFile(com.ibm.etools.commonarchive.ApplicationClientFile clientFile,org.eclipse.wst.validation.internal.provisional.core.IReporter reporter)
Deprecated.
  1. protected
  2. void
validateEARFile(com.ibm.etools.commonarchive.EARFile earFile,org.eclipse.wst.validation.internal.provisional.core.IReporter reporter)
Deprecated.
  1. protected
  2. void
validateEJBJarFile(com.ibm.etools.commonarchive.EJBJarFile ejbJarFile,org.eclipse.wst.validation.internal.provisional.core.IReporter reporter)
Deprecated.
  1. protected
  2. void
validateWARFile(com.ibm.etools.commonarchive.WARFile warFile,org.eclipse.wst.validation.internal.provisional.core.IReporter reporter)
Deprecated.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

ModuleValidator

  1. public ModuleValidator()
Deprecated.

Method Detail

execute

  1. public void execute()
  2. throws BuildException
Deprecated.
Throws:
BuildException
See Also:
org.apache.tools.ant.Task#execute()

setSrc

  1. public void setSrc(java.lang.String src)
Deprecated.
Sets the src module path.
Parameters:
src - The path to the module to validate

validate

  1. protected void validate(org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile archive,
  2. org.eclipse.wst.validation.internal.provisional.core.IReporter reporter)
  3. throws org.eclipse.wst.validation.internal.core.ValidationException
  4. java.lang.Exception
Deprecated.
Throws:
org.eclipse.wst.validation.internal.core.ValidationException
java.lang.Exception

validateEARFile

  1. protected void validateEARFile( com.ibm.etools.commonarchive.EARFile earFile,
  2. org.eclipse.wst.validation.internal.provisional.core.IReporter reporter)
  3. throws java.lang.Exception
Deprecated.
Throws:
java.lang.Exception

validateWARFile

  1. protected void validateWARFile( com.ibm.etools.commonarchive.WARFile warFile,
  2. org.eclipse.wst.validation.internal.provisional.core.IReporter reporter)
  3. throws java.lang.Exception
Deprecated.
Throws:
java.lang.Exception

validateEJBJarFile

  1. protected void validateEJBJarFile( com.ibm.etools.commonarchive.EJBJarFile ejbJarFile,
  2. org.eclipse.wst.validation.internal.provisional.core.IReporter reporter)
  3. throws java.lang.Exception
Deprecated.
Throws:
java.lang.Exception

validateApplicationClientFile

  1. protected void validateApplicationClientFile( com.ibm.etools.commonarchive.ApplicationClientFile clientFile,
  2. org.eclipse.wst.validation.internal.provisional.core.IReporter reporter)
  3. throws java.lang.Exception
Deprecated.
Throws:
java.lang.Exception

addMessage

  1. public void addMessage(org.eclipse.wst.validation.internal.provisional.core.IValidator origin,
  2. org.eclipse.wst.validation.internal.provisional.core.IMessage message)
  3. 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

  1. public void displaySubtask(org.eclipse.wst.validation.internal.provisional.core.IValidator validator,
  2. 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

  1. public org.eclipse.wst.validation.internal.core.IMessageAccess getMessageAccess( )
Deprecated.
See Also:
org.eclipse.wst.validation.internal.provisional.core.IReporter#getMessageAccess()

isCancelled

  1. public boolean isCancelled()
Deprecated.
Specified by:
isCancelled in interface org.eclipse.wst.validation.internal.provisional.core.IReporter
See Also:
IReporter.isCancelled()

removeAllMessages

  1. public void removeAllMessages(org.eclipse.wst.validation.internal.provisional.core.IValidator origin,
  2. 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

  1. 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

  1. public void removeMessageSubset( org.eclipse.wst.validation.internal.provisional.core.IValidator validator,
  2. java.lang.Object obj,
  3. 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

  1. public void setFailonerror(boolean failonerror)
Deprecated.
Sets the failonerror. Default is false.
Parameters:
failonerror - The failonerror to set

getMessages

  1. public java.util.List getMessages( )
Deprecated.
Specified by:
getMessages in interface org.eclipse.wst.validation.internal.provisional.core.IReporter