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, wrapper
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
Methods 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:
execute
in 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
-