Interface BuildInvoker

All Known Implementing Classes:
BuildInvoker.Gradlew

public interface BuildInvoker
Runs a build against a checked-out repository.

Injected into SourceBuilder so its caching logic can be tested without running a real build.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    Shells out to the checkout's own gradlew wrapper, so the build runs with whatever Gradle version and plugin configuration the checkout itself declares.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    invoke(File checkoutDir)
    Runs the build against the given checkout and blocks until it completes.
  • Method Details

    • invoke

      void invoke(File checkoutDir) throws IOException
      Runs the build against the given checkout and blocks until it completes.
      Parameters:
      checkoutDir - the checked-out repository directory to build.
      Throws:
      IOException - if the build cannot be started, is interrupted, or exits non-zero.