Class FindMainClass

  • All Implemented Interfaces:
    Cloneable

    public class FindMainClass
    extends org.apache.tools.ant.Task
    Ant task to find a main class.
    Since:
    1.3.0
    • Field Summary

      • Fields inherited from class org.apache.tools.ant.Task

        target, taskName, taskType, wrapper
      • Fields inherited from class org.apache.tools.ant.ProjectComponent

        description, location, project
    • Constructor Summary

      Constructors 
      ConstructorDescription
      FindMainClass​(org.apache.tools.ant.Project project) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      voidexecute() 
      voidsetClassesRoot​(File classesRoot)
      Set the root location of classes to be searched.
      voidsetMainClass​(String mainClass)
      Set the main class, which will cause the search to be bypassed.
      voidsetProperty​(String property)
      Set the ANT property to set (if left unset, result will be printed to the log).
      • 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
      • Methods inherited from class org.apache.tools.ant.ProjectComponent

        clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
    • Constructor Detail

      • FindMainClass

        public FindMainClass​(org.apache.tools.ant.Project project)
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.tools.ant.BuildException
        Overrides:
        execute in class org.apache.tools.ant.Task
        Throws:
        org.apache.tools.ant.BuildException
      • setMainClass

        public void setMainClass​(String mainClass)
        Set the main class, which will cause the search to be bypassed.
        Parameters:
        mainClass - the main class name
      • setClassesRoot

        public void setClassesRoot​(File classesRoot)
        Set the root location of classes to be searched.
        Parameters:
        classesRoot - the root location
      • setProperty

        public void setProperty​(String property)
        Set the ANT property to set (if left unset, result will be printed to the log).
        Parameters:
        property - the ANT property to set