About {ProductShortName} command-line arguments
The following is a detailed description of the available {ProductShortName} command line arguments.
Note
|
To run the {ProductShortName} command without prompting, for example when executing from a script, you must use the following arguments:
|
Argument | Description | ||
---|---|---|---|
--additionalClassPath |
A space-delimited list of additional JAR files or directories to add to the class path so that they are available for decompilation or other analysis. |
||
--addonDir |
Add the specified directory as a custom add-on repository. |
||
--analyzeKnownLibraries |
Flag to analyze known software artifacts embedded within your application. By default, {ProductShortName} only analyzes application code.
|
||
--batchMode |
Flag to specify that {ProductShortName} should be run in a non-interactive mode without prompting for confirmation. This mode takes the default values for any parameters not passed in to the command line. |
||
--debug |
Flag to run {ProductShortName} in debug mode. |
||
--disableTattletale |
Flag to disable generation of the Tattletale report. If both |
||
--discoverPackages |
Flag to list all available packages in the input binary application. |
||
--enableClassNotFoundAnalysis |
Flag to enable analysis of Java files that are not available on the class path. This should not be used if some classes will be unavailable at analysis time. |
||
--enableCompatibleFilesReport |
Flag to enable generation of the Compatible Files report. Due to processing all files without found issues, this report may take a long time for large applications. |
||
--enableTattletale |
Flag to enable generation of a Tattletale report for each application. This option is enabled by default when |
||
--enableTransactionAnalysis |
[Technology Preview] Flag to enable generation of a Transactions report that displays the call stack, which executes operations on relational database tables. The Enable Transaction Analysis feature supports Spring Data JPA and the traditional
|
||
--excludePackages |
A space-delimited list of packages to exclude from evaluation. For example, entering |
||
--excludeTags |
A space-delimited list of tags to exclude. When specified, rules with these tags will not be processed. To see the full list of tags, use the |
||
--explodedApp |
Flag to indicate that the provided input directory contains source files for a single application. |
||
--exportCSV |
Flag to export the report data to a CSV file on your local file system. {ProductShortName} creates the file in the directory specified by the |
||
--exportSummary |
Flag to instruct {ProductShortName} to generate an |
||
--exportZipReport |
This argument creates a |
||
--help |
Display the {ProductShortName} help message. |
||
--immutableAddonDir |
Add the specified directory as a custom read-only add-on repository. |
||
--includeTags |
A space-delimited list of tags to use. When specified, only rules with these tags will be processed. To see the full list of tags, use the |
||
--input |
A space-delimited list of the path to the file or directory containing one or more applications to be analyzed. This argument is required. |
||
--install |
Specify add-ons to install. The syntax is |
||
--keepWorkDirs |
Flag to instruct {ProductShortName} to not delete temporary working files, such as the graph database and extracted archive files. This is useful for debugging purposes. |
||
--legacyReports |
Flag to instruct {ProductShortName} to generate the old format reports instead of the new format reports. |
||
--list |
Flag to list installed add-ons. |
||
--listSourceTechnologies |
Flag to list all available source technologies. |
||
--listTags |
Flag to list all available tags. |
||
--listTargetTechnologies |
Flag to list all available target technologies. |
||
--mavenize |
Flag to create a Maven project directory structure based on the structure and content of the application. This creates |
||
--mavenizeGroupId |
When used with the |
||
--online |
Flag to allow network access for features that require it. Currently only validating XML schemas against external resources relies on Internet access. Note that this comes with a performance penalty. |
||
--output |
Specify the path to the directory to output the report information generated by {ProductShortName}. |
||
--overwrite |
Flag to force delete the existing output directory specified by
|
||
--packages |
A space-delimited list of the packages to be evaluated by {ProductShortName}. It is highly recommended to use this argument. |
||
--remove |
Remove the specified add-ons. The syntax is |
||
--skipReports |
Flag to indicate that HTML reports should not be generated. A common use of this argument is when exporting report data to a CSV file using |
||
--source |
A space-delimited list of one or more source technologies, servers, platforms, or frameworks to migrate from. This argument, in conjunction with the |
||
--sourceMode |
Flag to indicate that the application to be evaluated contains source files rather than compiled binaries. The sourceMode argument has been deprecated. There is no longer the need to specify it. {ProductShortName} can intuitively process any inputs that are presented to it. In addition, project source folders can be analyzed with binary inputs within the same analysis execution. |
||
--target |
A space-delimited list of one or more target technologies, servers, platforms, or frameworks to migrate to. This argument, in conjunction with the |
||
--userIgnorePath |
Specify a location, in addition to |
||
--userLabelsDirectory |
Specify a location for {ProductShortName} to look for custom Target Runtime Labels. The value can be a directory containing label files or a single label file. The Target Runtime Label files must use the |
||
--userRulesDirectory |
Specify a location, in addition to |
||
--version |
Display the {ProductShortName} version. |
||
--skipSourceCodeReports |
This option skips generating a Source code report when generating the application analysis report. Use this advanced option when concerned about source code information appearing in the application analysis. |
Specifying the input
A space-delimited list of the path to the file or directory containing one or more applications to be analyzed. This argument is required.
--input <INPUT_ARCHIVE_OR_DIRECTORY> [...]
Depending on whether the input file type provided to the --input
argument is a file or directory, it will be evaluated as follows depending on the additional arguments provided.
- Directory
-
--explodedApp --sourceMode Neither Argument The directory is evaluated as a single application.
The directory is evaluated as a single application.
Each subdirectory is evaluated as an application.
- File
-
--explodedApp --sourceMode Neither Argument Argument is ignored; the file is evaluated as a single application.
The file is evaluated as a compressed project.
The file is evaluated as a single application.
Specifying the output directory
Specify the path to the directory to output the report information generated by {ProductShortName}.
--output <OUTPUT_REPORT_DIRECTORY>
-
If omitted, the report will be generated in an
<INPUT_ARCHIVE_OR_DIRECTORY>.report
directory. -
If the output directory exists, you will be prompted with the following (with a default of N).
Overwrite all contents of "/home/username/<OUTPUT_REPORT_DIRECTORY>" (anything already in the directory will be deleted)? [y,N]
However, if you specify the --overwrite
argument, {ProductShortName} will proceed to delete and recreate the directory. See the description of this argument for more information.
Setting the source technology
A space-delimited list of one or more source technologies, servers, platforms, or frameworks to migrate from. This argument, in conjunction with the --target
argument, helps to determine which rulesets are used. Use the --listSourceTechnologies
argument to list all available sources.
--source <SOURCE_1> <SOURCE_2>
The --source
argument now provides version support, which follows the Maven version range syntax. This instructs {ProductShortName} to only run the rulesets matching the specified versions. For example, --source eap:5
.
Warning
|
When migrating to JBoss EAP, be sure to specify the version, for example, See Supported migration paths in Introduction to the Migration Toolkit for Applications for the appropriate JBoss EAP version. |
Setting the target technology
A space-delimited list of one or more target technologies, servers, platforms, or frameworks to migrate to. This argument, in conjunction with the --source
argument, helps to determine which rulesets are used. If you do not specify this option, you are prompted to select a target. Use the --listTargetTechnologies
argument to list all available targets.
--target <TARGET_1> <TARGET_2>
The --target
argument now provides version support, which follows the Maven version range syntax. This instructs {ProductShortName} to only run the rulesets matching the specified versions. For example, --target eap:7
.
Warning
|
When migrating to JBoss EAP, be sure to specify the version in the target, for example, See Supported migration paths in Introduction to the Migration Toolkit for Applications for the appropriate JBoss EAP version. |
Selecting packages
A space-delimited list of the packages to be evaluated by {ProductShortName}. It is highly recommended to use this argument.
--packages <PACKAGE_1> <PACKAGE_2> <PACKAGE_N>
-
In most cases, you are interested only in evaluating custom application class packages and not standard Java EE or third party packages. The
<PACKAGE_N>
argument is a package prefix; all subpackages will be scanned. For example, to scan the packagescom.mycustomapp
andcom.myotherapp
, use--packages com.mycustomapp com.myotherapp
argument on the command line. -
While you can provide package names for standard Java EE third party software like
org.apache
, it is usually best not to include them as they should not impact the migration effort.
Warning
|
If you omit the |