package saker.build.scripting
public interface TargetConfigurationReader
Interface for reading a build script and converting it to a target configuration.
The parsing of the build script can be tuned using ScriptParsingOptions which provide arbitrary options for the reader.
Implementations of this interface should be stateless, and should be able to handle concurrent configuration reading requests from multiple sources.
public TargetConfigurationReadingResult | readConfiguration( Reads the target configuration from the given input. |
public abstract TargetConfigurationReadingResult readConfiguration(ScriptParsingOptions options, ByteSource input) throws IOException, ScriptParsingFailedException, NullPointerException
Reads the target configuration from the given input.
The return value of this method contains the actual parsed target configuration with other information meta-data.
optionsThe parsing options to use.
inputThe byte input of the script.
The parsing result for the input.
IOExceptionIn case of I/O error.
ScriptParsingFailedExceptionIf the script parsing failed for some reason (invalid syntax or semantics most commonly).
NullPointerExceptionIf any of the parameters are
null
.