类 FindMainClass

  • 所有已实现的接口:
    Cloneable

    public class FindMainClass
    extends org.apache.tools.ant.Task
    Ant task to find a main class.
    从以下版本开始:
    1.3.0
    • 字段概要

      • 从类继承的字段 org.apache.tools.ant.Task

        target, taskName, taskType, wrapper
      • 从类继承的字段 org.apache.tools.ant.ProjectComponent

        description, location, project
    • 构造器概要

      构造器 
      构造器说明
      FindMainClass​(org.apache.tools.ant.Project project) 
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型方法说明
      voidexecute() 
      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).
      • 从类继承的方法 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
      • 从类继承的方法 org.apache.tools.ant.ProjectComponent

        clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
    • 构造器详细资料

      • 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