Interface BuildContext

All Known Implementing Classes:
DefaultBuildContext

public interface BuildContext
The context of a build.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.commons.cli.CommandLine
    The command line as processed by Apache Commons CLI.
    <T extends Resource>
    Stream<T>
    get(ResourceProvider provider, ResourceRequest<T> request)
    Obtains the resource stream for the given resource from the given provider.
    The relative path to the JDrupes Builder directory from a project directory.
    Return the value of the given property.
  • Method Details

    • jdbldDirectory

      The relative path to the JDrupes Builder directory from a project directory.
      Returns:
      the path
    • commandLine

      org.apache.commons.cli.CommandLine commandLine()
      The command line as processed by Apache Commons CLI.
      Returns:
      the string[]
    • get

      <T extends Resource> Stream<T> get(ResourceProvider provider, ResourceRequest<T> request)
      Obtains the resource stream for the given resource from the given provider. The result from invoking the provider is evaluated asynchronously and cached. Only when the returned stream is terminated will the invocation block until the result from the provider becomes available.
      Type Parameters:
      T - the resource type
      Parameters:
      provider - the provider
      request - the request
      Returns:
      the results
    • property

      Return the value of the given property. Properties are defined by (in order of precedence):

      1. command line options
      2. the file .jdbld.properties in the directory of the root project
      3. the file .jdbld/jdbld.properties in the user's home directory
      Parameters:
      name - the name
      Returns:
      the string