public class ProgressTransformDriver extends TransformDriver
This program provides a command line interface. See main(java.lang.String[]) for the syntax.
TransformDriver.ExcludeCheck, TransformDriver.JobDefinition, TransformDriver.ListType, TransformDriver.ScanCheck| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String[] |
helpText
Help text, which needs to be implemented in each subclass.
|
private static java.util.Map<java.lang.String,RunMode> |
modes
Associates mode names with detailed mode definitions.
|
private static java.lang.String |
TITLE
Job title, which needs to be implemented in each subclass.
|
asts, DANGER_LIST, datanames, debug, dicts, job, mode, MSG_DEBUG, MSG_NONE, MSG_STATUS, MSG_TRACE, sdicts, source, spacer| Constructor and Description |
|---|
ProgressTransformDriver(TransformDriver.JobDefinition job)
Creates an instance with a specific configuration.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
back()
Drive the back end of the transformation process using the file list of Progress ASTs
that is already defined in this instance.
|
static void |
main(java.lang.String[] args)
Provides a command line interface for an end user to drive the scanning harness.
|
protected void |
middle()
Drive the transformation process using the file list of Progress ASTs that is already
defined in this instance.
|
cleanScanResults, convertSourceNamesToAstNames, convertSourceNamesToDictNames, createDatabaseList, deleteFiles, deleteFileSpecs, escapeRegex, executeJob, front, interpretRunMode, omitSchemaMetadata, printElapsed, printHeader, processCommandLine, processTrees, processTrees, replaceFilenameExtension, runCallGraphGenerator, runScanDriver, runSchemaLoader, syntax, zapFilesprivate static final java.util.Map<java.lang.String,RunMode> modes
private static final java.lang.String TITLE
private static final java.lang.String[] helpText
ProgressTransformDriver(TransformDriver.JobDefinition job)
job - The details of this driver run.protected void middle()
throws ConfigurationException,
AstException,
SchemaException,
java.io.IOException
middle in class TransformDriverConfigurationException - If there is problem reading/parsing the configuration.AstException - If there is an problem processing ASTs.SchemaException - If there is a problem with the schema.java.io.IOException - If there is a problem with I/O.protected void back()
throws ConfigurationException,
AstException,
SchemaException,
java.io.IOException
back in class TransformDriverConfigurationException - If there is problem reading/parsing the configuration.AstException - If there is an problem processing ASTs.SchemaException - If there is a problem with the schema.java.io.IOException - If there is a problem with I/O.public static void main(java.lang.String[] args)
The program will return a non-zero code if there is a fatal error running the conversion.
Syntax:
java -DP2J_HOME=<home> ProgressTransformDriver [-options]* <mode> [user_defined_rule_set] <file-specs>
Where:
MSG_NONE (0) and
MSG_TRACE (3) inclusive
<file-specs> is a <filename> containing a custom FILE-LIST, instead of
using the explicit command line file list
<file-specs> is composed of a root <directory> and a "<file-filter>", to select SPECIFIC files instead of an explicit command line file list
<file-specs> is similar to S but has an additional custom EXCLUDE list file
"<filename>" to be ignored
<file-filter> (S/X options)",
>=
0; defaults to 1; set to 0 to use 1 thread per available CPU)
<name> of the configuration PROFILE follows the option
mode (one or more of the following values, use '+' to delimit if there are two or more
values; don't insert spaces!)
user_defined_rule_set specifies the user-defined rule-set filename to execute
(only some modes support this, see sub-class documentation for details)
<filelist> is arbitrary list of absolute and/or relative file names to scan, this
list is hard coded in the command line itself
<filename> is a single absolute or relative filename of a text file that contains a
custom list of absolute and/or relative file names of files to scan
<directory> is the root directory to search for files
"filespec" is the file specification that will be used to create a list of files to
process, should be enclosed in double quotes if any of the wildcard characters '*' or '?'
are used
<directory> is the root directory to search for files
"filespec"" is the file specification that will be used to create a list of files
to process, should be enclosed in double quotes if any of the wildcard characters '*' or
'?' are used
<filename> is a single absolute or relative filename of a text file that contains a
custom list of specifications of file names to ignore
filespec which are not matched by the ignore list
are scanned as they would be in filespec mode.
args - List of command line arguments.