Interface BuildContext
- All Known Implementing Classes:
DefaultBuildContext
public interface BuildContext
The context of a build.
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.cli.CommandLineThe command line as processed by Apache Commons CLI.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
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 providerrequest- the request- Returns:
- the results
-
property
Return the value of the given property. Properties are defined by (in order of precedence):
- command line options
- the file
.jdbld.propertiesin the directory of the root project - the file
.jdbld/jdbld.propertiesin the user's home directory
- Parameters:
name- the name- Returns:
- the string
-