Class BuildLoop


  • public class BuildLoop
    extends Object
    A continuous incremental build loop.
    • Method Detail

      • builder

        public static BuildLoop.Builder builder()
        Returns a new builder.
        Returns:
        The builder.
      • start

        public BuildLoop start()
        Starts the build loop.
        Returns:
        This instance.
      • project

        public Project project()
        Returns the project, if present.
        Returns:
        The project or null if the loop has not started or not progressed to the point at which the project has been built.
      • monitor

        public BuildMonitor monitor()
        Returns the monitor.
        Returns:
        The monitor.
      • waitForStopped

        public boolean waitForStopped​(long timeout,
                                      TimeUnit unit)
                               throws InterruptedException
        Wait for the build loop to stop.
        Parameters:
        timeout - The maximum time to wait.
        unit - The time unit of timeout.
        Returns:
        true if the loop stopped, false if a timeout occurred.
        Throws:
        InterruptedException - If interrupted.