Interface BuildCallback


public interface BuildCallback
Callback interface for build progress and completion notifications.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onComplete(int exitCode, Path artifact)
    Called when the build completes (successfully or with non-zero exit code).
    void
    Called when the build fails with an exception.
    void
    Called when a line of output is produced by the build.
  • Method Details

    • onOutput

      void onOutput(String line)
      Called when a line of output is produced by the build.
      Parameters:
      line - the output line
    • onComplete

      void onComplete(int exitCode, Path artifact)
      Called when the build completes (successfully or with non-zero exit code).
      Parameters:
      exitCode - the process exit code (0 = success)
      artifact - path to the build artifact (WAR file), may be null
    • onError

      void onError(Exception e)
      Called when the build fails with an exception.
      Parameters:
      e - the exception that caused the failure