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
-
Field Summary
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()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, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Constructor Details
-
FindMainClass
public FindMainClass(org.apache.tools.ant.Project project)
-
-
Method Details
-
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-
setMainClass
Set the main class, which will cause the search to be bypassed.- Parameters:
mainClass- the main class name
-
setClassesRoot
Set the root location of classes to be searched.- Parameters:
classesRoot- the root location
-
setProperty
Set the ANT property to set (if left unset, result will be printed to the log).- Parameters:
property- the ANT property to set
-