-
Notifications
You must be signed in to change notification settings - Fork 30
MTA-2204-Changes-needed-for-mta-cli-docs #848
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
anarnold97
merged 34 commits into
windup:main
from
anarnold97:MTA-2204-Changes-needed-for-mta-cli-docs
Feb 9, 2024
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
6671fdc
MTA-2204-Changes-needed-for-mta-cli-docs
anarnold97 3636dbe
MTA-2204-Changes-needed-for-mta-cli-docs
anarnold97 824dcea
Update
anarnold97 162ca20
Update #2
anarnold97 e2c3fb3
Update docs/topics/mta-cli-args.adoc
anarnold97 2200c28
Update docs/topics/mta-exclude-files-and-packages.adoc
anarnold97 05a1f53
Update docs/topics/mta-cli-args.adoc
anarnold97 98ea3fe
Update docs/topics/mta-exclude-files-and-packages.adoc
anarnold97 5c8ee26
Update mta-cli-args.adoc
anarnold97 ad83d24
Update docs/topics/mta-cli-args.adoc
anarnold97 fa33f50
Update docs/topics/mta-cli-args.adoc
anarnold97 706be1d
Update mta-cli-args.adoc
anarnold97 fd7c93d
Update mta-cli-args.adoc
anarnold97 ffeda4a
Update mta-cli-args.adoc
anarnold97 50a25fd
Update docs/topics/mta-cli-args.adoc
anarnold97 77bf14a
Update docs/topics/mta-cli-args.adoc
anarnold97 1232720
Update docs/topics/mta-cli-args.adoc
anarnold97 9849fa5
Update docs/topics/mta-cli-args.adoc
anarnold97 9cd0e2b
Update mta-cli-args.adoc
anarnold97 215f636
Update docs/cli-guide/master.adoc
anarnold97 4b0ae10
Update docs/topics/mta-review-reports.adoc
anarnold97 6622f09
Update docs/topics/mta-cli-args.adoc
anarnold97 990cb88
Update mta-review-reports.adoc
anarnold97 eb43b6e
Remove Transactions report references
anarnold97 26756ad
Update mta-cli-args.adoc
anarnold97 0108a2b
Update mta-review-reports.adoc
anarnold97 3b2d567
Update docs/topics/mta-cli-args.adoc
anarnold97 8bf4df1
Update docs/topics/mta-cli-args.adoc
anarnold97 996dbd9
Update mta-cli-args.adoc
anarnold97 ca18f02
Update docs/topics/mta-cli-args.adoc
anarnold97 8bf275f
Update docs/topics/mta-cli-args.adoc
anarnold97 295d125
Update docs/topics/mta-cli-args.adoc
anarnold97 3545e56
Update docs/topics/mta-cli-args.adoc
anarnold97 f5b04b3
Update docs/topics/mta-cli-args.adoc
anarnold97 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,213 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * docs/cli-guide/master.adoc | ||
|
|
||
| :_content-type: REFERENCE | ||
| [id="cli-args_{context}"] | ||
| = About {ProductShortName} command-line arguments | ||
|
|
||
| The following is a detailed description of the available {ProductShortName} command line arguments. | ||
|
|
||
| [NOTE] | ||
| ==== | ||
| To run the {ProductShortName} command, for example when executing from a script, you must use the following arguments: | ||
|
|
||
| * `--overwrite` | ||
| * `--input` | ||
| * `--target` | ||
| ==== | ||
|
|
||
|
|
||
| .{ProductShortName} CLI arguments | ||
| [cols="40%,60%a",options="header",] | ||
| |==== | ||
| |Argument |Description | ||
| |--analyze-known-libraries | Flag to analyze known software artifacts embedded within your application. By default, {ProductShortName} only analyzes application code. | ||
|
|
||
| [NOTE] | ||
| ==== | ||
| This option may result in a longer execution time and a large number of migration issues being reported. | ||
| ==== | ||
|
|
||
| |--help |Display the {ProductShortName} help message. | ||
| |--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. | ||
| | --list-sources | ||
| | list rules for available migration sources | ||
| |--list-sources | Flag to list all available source technologies. | ||
| |--list-targets| Flag to list all available target technologies. | ||
|
anarnold97 marked this conversation as resolved.
|
||
| |--output |Specify the path to the directory to output the report information generated by {ProductShortName}. | ||
|
|
||
| [IMPORTANT] | ||
| ==== | ||
| Do not overwrite a report output directory that contains important information. | ||
| ==== | ||
| | --rules stringArray | Filename or directory containing rule files | ||
| | --source |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. | ||
| |--target |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. Use the `--list-targets` argument to list all available targets. | ||
| |==== | ||
|
|
||
| [id="cli-input-argument_{context}"] | ||
| == 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. | ||
|
|
||
| .Usage | ||
| [source,options="nowrap",subs="attributes+"] | ||
| ---- | ||
| --input <INPUT_ARCHIVE_OR_DIRECTORY> [...] | ||
| ---- | ||
|
|
||
| [id="cli-input-file-type-arguments_{context}"] | ||
| == Analyze application source code | ||
|
|
||
| Usage: `{mta-cli} analyze [flags]` | ||
|
|
||
| The following flags are available: | ||
|
|
||
| .{ProductShortName} Analyze application | ||
| [cols="40%,60%a",options="header",] | ||
| |==== | ||
| |Flag |Description | ||
|
|
||
| | --analyze-known-libraries | ||
| | analyze known open-source libraries | ||
|
|
||
| | -h, --help | ||
| | help for analyze | ||
|
|
||
| | -i, --input string | ||
| | path to application source code or a binary | ||
|
|
||
| | --json-output | ||
| | create analysis and dependency output as json | ||
|
|
||
| | --list-sources | ||
| | list rules for available migration sources | ||
|
|
||
| | --list-targets | ||
| | list rules for available migration targets | ||
|
|
||
| | -l, --label-selector string | ||
| | run rules based on specified label selector expression | ||
|
|
||
| | --maven-settings string | ||
| | path to a custom maven settings file to use | ||
|
|
||
| | --overwrite | ||
| | overwrite output directory | ||
|
|
||
| | --skip-static-report | ||
| | do not generate static report | ||
|
|
||
| | -m, --mode string | ||
| | analysis mode" `full` (default) or `source-only` | ||
|
|
||
| | -o, --output string | path to the directory for analysis output | ||
|
|
||
| | --rules stringArray | filename or directory containing rule files | ||
|
|
||
| | --skip-static-report | ||
| | do not generate static report | ||
|
|
||
| | -s, --source string | ||
| | source technology to consider for analysis. To specify multiple sources, repeat the parameter: --source <source_1> --source <source_2> etc. | ||
|
|
||
| | -t, --target string | ||
| | target technology to consider for analysis. To specify multiple targets, repeat the parameter: --target <target_1> --target <target_2> etc. | ||
| |==== | ||
|
|
||
| [id="cli-input-file-type-arguments-global-flags_{context}"] | ||
| === Global flags | ||
|
|
||
| .{ProductShortName} Analyze application | ||
| [cols="40%,60%a",options="header",] | ||
| |==== | ||
|
|
||
| |Flag | ||
| |Description | ||
|
|
||
| | --log-level uint32 | ||
| | log level (default 4) | ||
|
|
||
| | --no-cleanup | ||
| | do not cleanup temporary resources | ||
| |==== | ||
|
|
||
|
|
||
|
|
||
| [id="cli-output-argument_{context}"] | ||
| == Specifying the output directory | ||
|
|
||
| Specify the path to the directory to output the report information generated by {ProductShortName}. | ||
|
|
||
| .Usage | ||
| [source,options="nowrap",subs="attributes+"] | ||
| ---- | ||
| --output <OUTPUT_REPORT_DIRECTORY> | ||
| ---- | ||
|
|
||
| * The `--output` argument is mandatory. If omitted, an error is returned: | ||
| + | ||
| [source,options="nowrap",subs="attributes+"] | ||
| ---- | ||
| Error: required flag(s) "output" not set | ||
| ---- | ||
|
|
||
| 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. | ||
|
|
||
| [id="cli-source-argument_{context}"] | ||
| == 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 `--list-sources` argument to list all available sources. | ||
|
|
||
| .Usage | ||
| [source,options="nowrap",subs="attributes+"] | ||
| ---- | ||
| --source <SOURCE_1> <SOURCE_2> | ||
| ---- | ||
|
|
||
| The `--source` argument now provides version support, which follows the link:http://maven.apache.org/enforcer/enforcer-rules/versionRanges.html[Maven version range syntax]. This instructs {ProductShortName} to only run the rulesets matching the specified versions. For example, `--source eap5`. | ||
|
|
||
| [WARNING] | ||
| ==== | ||
| When migrating to JBoss EAP, be sure to specify the version, for example, `eap6`. Specifying only `eap` will run rulesets for all versions of JBoss EAP, including those not relevant to your migration path. | ||
|
|
||
| See link:{ProductDocIntroToMTAGuideURL}/index#migration_paths_getting-started-guide[Supported migration paths] in _{IntroToMTABookName}_ for the appropriate JBoss EAP version. | ||
| ==== | ||
|
|
||
| [id="cli-target-argument_{context}"] | ||
| == 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 provide a target, mta-cli analyzes the input based on the source and discovery rules. Use the `--list-targets` argument to list all available targets. | ||
|
|
||
| .Usage | ||
| [source,options="nowrap",subs="attributes+"] | ||
| ---- | ||
| --target <TARGET_1> <TARGET_2> | ||
| ---- | ||
|
|
||
|
|
||
| The `--target` argument now provides version support, which follows the link:http://maven.apache.org/enforcer/enforcer-rules/versionRanges.html[Maven version range syntax]. This instructs {ProductShortName} to only run the rulesets matching the specified versions. For example, `--target eap7`. | ||
|
|
||
| [WARNING] | ||
| ==== | ||
| When migrating to JBoss EAP, be sure to specify the version in the target, for example, `eap6`. Specifying only `eap` will run rulesets for all versions of JBoss EAP, including those not relevant to your migration path. | ||
|
|
||
| See link:{ProductDocIntroToMTAGuideURL}/index#migration_paths_getting-started-guide[Supported migration paths] in _{IntroToMTABookName}_ for the appropriate JBoss EAP version. | ||
| ==== | ||
|
|
||
| //// | ||
| [id="cli-packages-argument_{context}"] | ||
| == Selecting packages | ||
|
|
||
| A space-delimited list of the packages to be evaluated by {ProductShortName}. It is highly recommended to use this argument. | ||
|
|
||
| .Usage | ||
| [source,options="nowrap",subs="attributes+"] | ||
| ---- | ||
| ---- | ||
|
|
||
| * 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 packages `com.mycustomapp` and `com.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. | ||
|
|
||
| //// | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * docs/cli-guide/master.adoc | ||
|
|
||
| :_content-type: PROCEDURE | ||
| [id="exclude-files-and-packages_{context}"] | ||
| = Configuring {ProductShortName} to exclude packages and files | ||
|
|
||
|
|
||
| [id="ignored-locations_{context}"] | ||
| == Searching locations for exclusion | ||
|
|
||
| {ProductShortName} searches the following locations: | ||
|
|
||
| * `~/.{LC_PSN}/ignore/` | ||
| * `~/.windup/ignore/` | ||
| * `<{ProductShortName}_HOME>/ignore/` | ||
|
|
||
|
anarnold97 marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * docs/cli-guide/master.adoc | ||
|
|
||
| :_content-type: CONCEPT | ||
| [id="optimize-performance_{context}"] | ||
| = Optimizing {ProductShortName} performance | ||
|
|
||
| {ProductShortName} performance depends on a number of factors, including hardware configuration, the number and types of files in the application, the size and number of applications to be evaluated, and whether the application contains source or compiled code. For example, a file that is larger than 10 MB may need a lot of time to process. | ||
|
|
||
| In general, {ProductShortName} spends about 40% of the time decompiling classes, 40% of the time executing rules, and the remainder of the time processing other tasks and generating reports. This section describes what you can do to improve the performance of {ProductShortName}. | ||
|
|
||
| == Deploying and running the application | ||
|
|
||
| Try these suggestions first before upgrading hardware. | ||
|
|
||
| * If possible, run {ProductShortName} against the source code instead of the archives. This eliminates the need to decompile additional JARs and archives. | ||
| * Increase your ulimit when analyzing large applications. See link:https://access.redhat.com/solutions/60746[this Red Hat Knowledgebase article] for instructions on how to do this for Red Hat Enterprise Linux. | ||
| * If you have access to a server that has better resources than your laptop or desktop machine, you may want to consider running {ProductShortName} on that server. | ||
|
|
||
| == Upgrading hardware | ||
|
|
||
| If the application and command-line suggestions above do not improve performance, you may need to upgrade your hardware. | ||
|
|
||
| * If you have access to a server that has better resources than your laptop/desktop, then you may want to consider running {ProductShortName} on that server. | ||
| * Very large applications that require decompilation have large memory requirements. 8 GB RAM is recommended. This allows 3 - 4 GB RAM for use by the JVM. | ||
| * An upgrade from a single or dual-core to a quad-core CPU processor provides better performance. | ||
| * Disk space and fragmentation can impact performance. A fast disk, especially a solid-state drive (SSD), with greater than 4 GB of defragmented disk space should improve performance. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.