public class DigesterCLIUtils
extends java.lang.Object
Constructor and Description |
---|
DigesterCLIUtils()
Constructor method for i18n purposes only.
|
Modifier and Type | Method and Description |
---|---|
protected static com.lf.commons.config.Configuration |
convertFromCheckCLIArgs(java.util.Hashtable<java.lang.String,java.lang.String[]> options)
Converts the given command line arguments for digestercli to option window parameters.
|
protected static com.lf.commons.config.Configuration |
convertFromGenerateCLIArgs(java.util.Hashtable<java.lang.String,java.lang.String[]> options,
java.util.Hashtable<java.lang.String,java.util.Vector<java.lang.String[]>> multiargs,
com.lf.commons.config.Configuration defaults,
java.util.Hashtable<java.lang.String,java.lang.Object> clivalues,
com.lf.commons.crypto.CryptoManager cryptomanager)
Converts the given command line arguments for digestercli to option window parameters.
|
protected static com.lf.commons.config.Configuration |
convertFromRefreshCLIArgs(java.util.Hashtable<java.lang.String,java.lang.String[]> options,
java.util.Hashtable<java.lang.String,java.util.Vector<java.lang.String[]>> multiargs,
com.lf.commons.config.Configuration defaults,
java.util.Hashtable<java.lang.String,java.lang.Object> clivalues,
com.lf.commons.crypto.CryptoManager cryptomanager)
Converts the given command line arguments for digestercli to option window parameters.
|
protected static com.lf.commons.config.Configuration |
convertFromSyncCLIArgs(java.util.Hashtable<java.lang.String,java.lang.String[]> options,
java.util.Hashtable<java.lang.String,java.util.Vector<java.lang.String[]>> multiargs,
com.lf.commons.config.Configuration defaults,
java.util.Vector<java.lang.String> flipholder,
java.util.Hashtable<java.lang.String,java.lang.Object> clivalues)
Converts the given command line arguments for digestercli to option window parameters (sync).
|
static java.lang.String |
convertToCheckAnt(com.lf.commons.config.Configuration config,
java.io.File[] targetfiles,
org.apache.commons.vfs2.FileObject[] targeturls)
Converts the given option window parameters to Ant build script fragments.
|
static java.lang.String[] |
convertToCheckCLIArgs(com.lf.commons.config.Configuration config,
java.io.File[] targetfiles,
org.apache.commons.vfs2.FileObject[] targeturls,
boolean argsonly)
Converts the given option window parameters to command line arguments for digestercli.
|
static java.lang.String |
convertToGenerateAnt(com.lf.commons.config.Configuration config,
java.io.File[] targetfiles,
org.apache.commons.vfs2.FileObject[] targeturls,
boolean refresh)
Converts the given option window parameters to Ant build script fragments.
|
static java.lang.String[] |
convertToGenerateCLIArgs(com.lf.commons.config.Configuration config,
java.io.File[] targetfiles,
org.apache.commons.vfs2.FileObject[] targeturls,
boolean argsonly,
boolean refresh,
boolean pgpkeyargs)
Converts the given option window parameters to command line arguments for digestercli.
|
static java.lang.String |
convertToSyncAnt(com.lf.commons.config.Configuration config,
java.lang.String activetargetset,
com.lf.commons.lang.OrderedHashtable<java.lang.Object,java.lang.Object[]> entries,
java.lang.String[] targetsetnames)
Converts the given option window parameters to Ant build script fragments.
|
static java.lang.String[] |
convertToSyncCLIArgs(com.lf.commons.config.Configuration config,
boolean argsonly,
com.lf.commons.lang.OrderedHashtable<java.lang.Object,java.lang.Object[]> entries,
java.lang.String activetargetset,
java.lang.String[] targetsetnames)
Converts the given option window parameters to command line arguments for sync mode.
|
public DigesterCLIUtils() throws java.lang.InstantiationException
I18NExtractor
).
java.lang.InstantiationException
- Error indicationpublic static java.lang.String[] convertToCheckCLIArgs(com.lf.commons.config.Configuration config, java.io.File[] targetfiles, org.apache.commons.vfs2.FileObject[] targeturls, boolean argsonly)
config
- Settings for checkingtargetfiles
- The files/directories to be processedtargeturls
- The URLs/directories to be processedargsonly
- Omit the application and target files/directories?public static java.lang.String[] convertToGenerateCLIArgs(com.lf.commons.config.Configuration config, java.io.File[] targetfiles, org.apache.commons.vfs2.FileObject[] targeturls, boolean argsonly, boolean refresh, boolean pgpkeyargs)
config
- Settings for generatingtargetfiles
- The files/directories to be processedtargeturls
- The URLs/directories to be processedargsonly
- Omit the application and target files/directories?refresh
- Provide options for refresh (generate otherwise)?pgpkeyargs
- Include PGP key arguments (false
for Ant)?public static java.lang.String[] convertToSyncCLIArgs(com.lf.commons.config.Configuration config, boolean argsonly, com.lf.commons.lang.OrderedHashtable<java.lang.Object,java.lang.Object[]> entries, java.lang.String activetargetset, java.lang.String[] targetsetnames)
config
- Settings for sync (template)argsonly
- Omit the application?entries
- The source/target entriesactivetargetset
- The name of the active target set, required for "-flipsourcetarget"targetsetnames
- The target set identifierspublic static java.lang.String convertToCheckAnt(com.lf.commons.config.Configuration config, java.io.File[] targetfiles, org.apache.commons.vfs2.FileObject[] targeturls)
config
- Settings for generatingtargetfiles
- The files/directories to be processedtargeturls
- The URLs/directories to be processednull
indicates errorpublic static java.lang.String convertToGenerateAnt(com.lf.commons.config.Configuration config, java.io.File[] targetfiles, org.apache.commons.vfs2.FileObject[] targeturls, boolean refresh)
config
- Settings for generatingtargetfiles
- The files/directories to be processedtargeturls
- The URLs/directories to be processedrefresh
- Provide options for refresh (generate otherwise)?null
indicates errorpublic static java.lang.String convertToSyncAnt(com.lf.commons.config.Configuration config, java.lang.String activetargetset, com.lf.commons.lang.OrderedHashtable<java.lang.Object,java.lang.Object[]> entries, java.lang.String[] targetsetnames)
config
- Settings for generatingactivetargetset
- The name of the active target set, required for "-flipsourcetarget"entries
- The source/target entriestargetsetnames
- The target set namesnull
indicates errorprotected static com.lf.commons.config.Configuration convertFromCheckCLIArgs(java.util.Hashtable<java.lang.String,java.lang.String[]> options)
options
- Command line argumentsprotected static com.lf.commons.config.Configuration convertFromGenerateCLIArgs(java.util.Hashtable<java.lang.String,java.lang.String[]> options, java.util.Hashtable<java.lang.String,java.util.Vector<java.lang.String[]>> multiargs, com.lf.commons.config.Configuration defaults, java.util.Hashtable<java.lang.String,java.lang.Object> clivalues, com.lf.commons.crypto.CryptoManager cryptomanager)
options
- Command line argumentsmultiargs
- The command line arguments showing up multiple timesdefaults
- The default values e.g. from template (optional)clivalues
- The cache for the command line values (e.g. entries)cryptomanager
- The PGP crypto managerprotected static com.lf.commons.config.Configuration convertFromRefreshCLIArgs(java.util.Hashtable<java.lang.String,java.lang.String[]> options, java.util.Hashtable<java.lang.String,java.util.Vector<java.lang.String[]>> multiargs, com.lf.commons.config.Configuration defaults, java.util.Hashtable<java.lang.String,java.lang.Object> clivalues, com.lf.commons.crypto.CryptoManager cryptomanager)
options
- Command line argumentsmultiargs
- The command line arguments showing up multiple timesdefaults
- The default values e.g. from template (optional)clivalues
- The cache for the command line values (e.g. entries)cryptomanager
- The PGP crypto managerprotected static com.lf.commons.config.Configuration convertFromSyncCLIArgs(java.util.Hashtable<java.lang.String,java.lang.String[]> options, java.util.Hashtable<java.lang.String,java.util.Vector<java.lang.String[]>> multiargs, com.lf.commons.config.Configuration defaults, java.util.Vector<java.lang.String> flipholder, java.util.Hashtable<java.lang.String,java.lang.Object> clivalues)
clivalues
container. The flip values are transported separately since it should be possible to
specify a template and also the flip mode option while the other parameters are "all-or-none".
options
- Command line argumentsmultiargs
- The command line arguments showing up multiple timesdefaults
- The default values e.g. from template (optional)flipholder
- The container holding the flip target set name, empty = no flipclivalues
- The cache for the command line values (e.g. entries)Copyright © 2005-2015 Leisenfels UG. All rights reserved.