Class InclusionSpecification
-
- All Implemented Interfaces:
public final class InclusionSpecificationA FileInclusionSpecification is at minimum a source-declaration from which files and directories will be included in the server pack to be generated.
Optionally, the following values can be specified:
Destination
Inclusion-filter (regex)
Exclusion-filter (regex)
When a destination is specified, then every file and directory acquired from the source will be copied to the specified destination in the server pack, whereas otherwise the source would be copied to a destination in the server pack matching the name of the source.
Inclusion filters help to further limit the files and directories to be included from the specified source. Any file and directory matching this filter will be included.
Exclusion filters help to further limit the files and directories to be included from the specified source. Any file and directory matching this filter will NOT be included.
Griefed
-
-
Field Summary
Fields Modifier and Type Field Description private Stringsourceprivate Stringdestinationprivate StringinclusionFilterprivate StringexclusionFilter
-
Constructor Summary
Constructors Constructor Description InclusionSpecification(String source, String destination, String inclusionFilter, String exclusionFilter)
-
Method Summary
Modifier and Type Method Description final StringgetSource()final UnitsetSource(String value)final StringgetDestination()final UnitsetDestination(String value)final StringgetInclusionFilter()final UnitsetInclusionFilter(String value)final StringgetExclusionFilter()final UnitsetExclusionFilter(String value)final BooleanhasInclusionFilter()Whether this inclusion-spec has an Inclusion-Filter present. final BooleanhasExclusionFilter()Whether this inclusion-spec has an Exclusion-Filter present. final BooleanhasDestination()Whether this inclusion-spec has a destination in the server-pack-to-be set. final BooleanisGlobalFilter()Whether this inclusion-spec is a global filter to be applied to every inclusion. final HashMap<String, String>asHashMap()Get this inclusion-spec as a hashmap. -
-
Method Detail
-
getDestination
final String getDestination()
-
setDestination
final Unit setDestination(String value)
-
getInclusionFilter
final String getInclusionFilter()
-
setInclusionFilter
final Unit setInclusionFilter(String value)
-
getExclusionFilter
final String getExclusionFilter()
-
setExclusionFilter
final Unit setExclusionFilter(String value)
-
hasInclusionFilter
final Boolean hasInclusionFilter()
Whether this inclusion-spec has an Inclusion-Filter present.
-
hasExclusionFilter
final Boolean hasExclusionFilter()
Whether this inclusion-spec has an Exclusion-Filter present.
-
hasDestination
final Boolean hasDestination()
Whether this inclusion-spec has a destination in the server-pack-to-be set.
-
isGlobalFilter
final Boolean isGlobalFilter()
Whether this inclusion-spec is a global filter to be applied to every inclusion. A global filter requires the source to be empty and/or blank and an inclusion- or exclusion-filter to be set.
-
-
-
-