Package org.springframework.boot.ant
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
Constructor Summary
Constructors Constructor Description FindMainClass(org.apache.tools.ant.Project project)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
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
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 classorg.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