package saker.build.runtime.params
Builder class for ExecutionScriptConfiguration.
The builder is single use, it cannot be reused after callig build().
public Builder | addConfig( Adds a configuration for the specified wildcard path to the builder. |
public ExecutionScriptConfiguration | build() Builds the ExecutionScriptConfiguration. |
public Builder addConfig(WildcardPath appliedpaths, ScriptOptionsConfig config) throws IllegalArgumentException
Adds a configuration for the specified wildcard path to the builder.
This method doesn't overwrite the configuration if it was already defined for the specified wildcard path, but will thrown an IllegalArgumentException.
During runtime, if a path matches multiple wildcards, the first one that matches it will be used.
appliedpathsThe paths to apply the configurations for.
configThe configuration.
this
IllegalArgumentExceptionIf a configuration were already defined for the given wildcard path.
Builds the ExecutionScriptConfiguration.
The builder is no longer useable if this call succeeds.
The constructed script configuration.