Class AntContainerExecutorThread

  • All Implemented Interfaces:
    Runnable

    public class AntContainerExecutorThread
    extends Thread
    Executor that executes an Ant's Java command in a separate thread.
    • Constructor Detail

      • AntContainerExecutorThread

        public AntContainerExecutorThread​(org.apache.tools.ant.taskdefs.Java java,
                                          boolean spawn)
        Parameters:
        java - the Ant java command to execute
        spawn - true to launch JVM in spawn, false to launch normal JVM.
    • Method Detail

      • getBuildException

        public org.apache.tools.ant.BuildException getBuildException()
        Returns a build exception.
        Returns:
        the build exception
      • isFinished

        public boolean isFinished()
        Determine if its finished or not
        Returns:
        If its finished or not
      • setFinished

        public void setFinished​(boolean b)
        Set if the its finished or not
        Parameters:
        b - sets finish state
      • run

        public void run()
        Execute the Ant's java command.
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread