public class DataConfigurationParserImpl extends Object implements DataConfigurationParser, DebianPackageConstants
A DataConfigurationParser implementation.
CONFFILES_ENTRY, CONFIG_ENTRY, CONTROL_ENTRY, CONTROL_NAME, CONTROL_TAR_PREFIX, DATA_NAME, DATA_TAR_PREFIX, DEBIAN_BINARY, DIRECTORY_MODE, DOC_BASE_PATH, FILE_MODE, MD5SUMS_ENTRY, POSTINST_ENTRY, POSTRM_ENTRY, PREINST_ENTRY, PRERM_ENTRY, ROOT_GROUP_ID, ROOT_GROUP_NAME, ROOT_USER_ID, ROOT_USER_NAME, SCRIPT_MODE, SHLIBS_ENTRY, SYMBOLS_ENTRY, TAR_BZIP2_SUFFIX, TAR_GZIP_SUFFIX, TAR_XZ_SUFFIX, TEMPLATES_ENTRY, TRIGGERS_ENTRY, USR_PATH, USR_SHARE_PATHUTF_8, UTF_8_CHARSET| Constructor and Description |
|---|
DataConfigurationParserImpl(Charset defaultEncoding,
Replacements replacements)
Creates a parser.
|
| Modifier and Type | Method and Description |
|---|---|
Size |
parseDataConfiguration(org.apache.maven.plugin.logging.Log log,
DataConfiguration configuration,
DebianPackageBuilder builder,
Context context)
Parses the configuration and adds the directories and files to the
builder.
|
public DataConfigurationParserImpl(Charset defaultEncoding, Replacements replacements)
Creates a parser.
defaultEncoding - The default encoding.replacements - The replacements.IllegalArgumentException - If any of the parameters are null.public Size parseDataConfiguration(org.apache.maven.plugin.logging.Log log, DataConfiguration configuration, DebianPackageBuilder builder, Context context) throws IOException, ParseException
DataConfigurationParserParses the configuration and adds the directories and files to the builder.
parseDataConfiguration in interface DataConfigurationParserlog - The log.configuration - The configuration.builder - The builder.context - The context.IOException - If an I/O error occurs.ParseException - If an error occurs while parsing.Copyright © 2015–2019. All rights reserved.