类 FindMainClass
- java.lang.Object
- org.apache.tools.ant.ProjectComponent
- org.apache.tools.ant.Task
- org.springframework.boot.ant.FindMainClass
- 所有已实现的接口:
Cloneable
public class FindMainClass extends org.apache.tools.ant.Task
Ant task to find a main class.- 从以下版本开始:
- 1.3.0
构造器概要
构造器 构造器 说明 FindMainClass(org.apache.tools.ant.Project project)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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).从类继承的方法 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
构造器详细资料
FindMainClass
public FindMainClass(org.apache.tools.ant.Project project)
方法详细资料
execute
public void execute() throws org.apache.tools.ant.BuildException
- 覆盖:
execute
在类中org.apache.tools.ant.Task
- 抛出:
org.apache.tools.ant.BuildException
setMainClass
public void setMainClass(String mainClass)
Set the main class, which will cause the search to be bypassed.- 参数:
mainClass
- the main class name
setClassesRoot
public void setClassesRoot(File classesRoot)
Set the root location of classes to be searched.- 参数:
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).- 参数:
property
- the ANT property to set