public interface BuildContext
| Modifier and Type | Method and Description |
|---|---|
void |
markSkipExecution() |
Iterable<? extends Resource<File>> |
registerAndProcessInputs(File basedir,
Collection<String> includes,
Collection<String> excludes)
Registers inputs identified by
basedir and includes/excludes ant
patterns. |
ResourceMetadata<File> |
registerInput(File inputFile)
Registers specified input
File with this build context. |
Iterable<? extends ResourceMetadata<File>> |
registerInputs(File basedir,
Collection<String> includes,
Collection<String> excludes)
Registers inputs identified by
basedir and includes/excludes ant
patterns. |
ResourceMetadata<File> registerInput(File inputFile)
File with this build context.InputMetadata representing the input file, never null.IllegalArgumentException - if inputFile is not a file or cannot be readIterable<? extends ResourceMetadata<File>> registerInputs(File basedir, Collection<String> includes, Collection<String> excludes) throws IOException
basedir and includes/excludes ant
patterns.
When a file is found under basedir, it will be registered if it does not match
excludes patterns and matches includes patterns. null or empty includes
parameter will match all files. excludes match takes precedence over includes,
if a file matches one of excludes patterns it will not be registered regardless of includes
patterns match.
Implementation is not expected to handle changes basedir, includes or
excludes incrementally.
basedir - is the base directory to look for inputs, must not be nullincludes - patterns of the files to register, can be nullexcludes - patterns of the files to ignore, can be nullIOExceptionhttp://ant.apache.org/manual/dirtasks.html#patternsIterable<? extends Resource<File>> registerAndProcessInputs(File basedir, Collection<String> includes, Collection<String> excludes) throws IOException
basedir and includes/excludes ant
patterns. Processes inputs that are new or modified since previous build.IOExceptionvoid markSkipExecution()
Copyright © 2015. All rights reserved.