Class StaticMethodTask


  • public class StaticMethodTask
    extends org.apache.tools.ant.Task
    Given a class name and method name, just invokes a static method.
    Author:
    tom riley
    • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      void setClassName​(java.lang.String className)
      Set class name on which to call static method.
      void setMethod​(java.lang.String method)
      Name of method to call.
      void setOsAlias​(java.lang.String alias)
      Set the os alias.
      • 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

      • StaticMethodTask

        public StaticMethodTask()
    • Method Detail

      • setClassName

        public void setClassName​(java.lang.String className)
        Set class name on which to call static method.
        Parameters:
        className - class name
      • setMethod

        public void setMethod​(java.lang.String method)
        Name of method to call.
        Parameters:
        method - method to call
      • setOsAlias

        public void setOsAlias​(java.lang.String alias)
        Set the os alias.
        Parameters:
        alias - os alias
      • execute

        public void execute()
        Overrides:
        execute in class org.apache.tools.ant.Task
        Throws:
        org.apache.tools.ant.BuildException - if a problem occurs
        See Also:
        Task.execute()