Class FindMainClass

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.springframework.boot.ant.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
    Constructor
    Description
    FindMainClass(org.apache.tools.ant.Project project)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    setClassesRoot(File classesRoot)
    Set the root location of classes to be searched.
    void
    setMainClass(String mainClass)
    Set the main class, which will cause the search to be bypassed.
    void
    setProperty(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

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FindMainClass

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

    • 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