-
Notifications
You must be signed in to change notification settings - Fork 30
WIP MTA-2257: Diverging MTA documentation #857
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
Open
anarnold97
wants to merge
6
commits into
windup:main
Choose a base branch
from
anarnold97:MTA-2257-diverging-MTA-docs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
2e97b2a
MTA-2257: Diverging MTA documentation
anarnold97 e79e64a
MTA-2257: Eclipse docs
anarnold97 202bde6
MTA-2257: IntelliJ
anarnold97 f5bf0b8
MTA-2257: VS Code
anarnold97 4bf7fe3
Update docs/eclipse-code-ready-studio-guide/master.adoc
anarnold97 40f7e5a
Update docs/eclipse-code-ready-studio-guide/master.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
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,21 @@ | ||
// Module included in the following assemblies: | ||
// | ||
// * docs/vs-code-extension-guide/master.adoc | ||
// * docs/intellij-idea-plugin-guide/master.adoc | ||
// * docs/eclipse-code-ready-guide/master.adoc | ||
|
||
:_content-type: CONCEPT | ||
[id="about-ide-addons_{context}"] | ||
= About the {ProductShortName} {AddonType} for {IDEName} | ||
|
||
You can migrate and modernize applications by using the {ProductName} ({ProductShortName}) {AddonType} for {IDEName}. | ||
|
||
The {ProductShortName} {AddonType} analyzes your projects using customizable rulesets, marks issues in the source code, provides guidance to fix the issues, and offers automatic code replacement, if possible. | ||
|
||
ifdef::vsc-extension-guide[] | ||
The {ProductShortName} extension is also compatible with Visual Studio Codespaces, the Microsoft cloud-hosted development environment. | ||
endif::[] | ||
|
||
ifdef::idea-plugin-guide[] | ||
The {AddonType} supports both the Community Edition and the Ultimate version of {IDEName}. | ||
endif::[] |
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,33 @@ | ||
// Module included in the following assemblies: | ||
// | ||
// * docs/eclipse-code-ready-studio-guide/master.adoc | ||
|
||
:_content-type: PROCEDURE | ||
[id="eclipse-accessing-tools_{context}"] | ||
= Accessing the {ProductShortName} tools | ||
|
||
You can access the {PluginName} tools in the *{ProductShortName}* perspective. | ||
|
||
.Prerequisites | ||
|
||
* You must restart the Eclipse IDE after installing the {PluginName}. | ||
|
||
.Procedure | ||
|
||
. Click *Window* -> *Perspective* -> *Open Perspective* -> *Other*. | ||
. Select *{ProductShortName}* and click *OK*. | ||
+ | ||
The following components are displayed: | ||
|
||
* *Issue Explorer* displays the migration issues identified by the {PluginName}. | ||
* *{ProductShortName} Server* is a separate process that analyzes projects, flags migration issues, and generates reports. | ||
+ | ||
You can start, stop, and view the status of the {ProductShortName} server in the *Issue Explorer*. | ||
|
||
* *Issue Details* displays detailed information about a selected issue, including the hint, severity, and any additional resources. | ||
* *{ProductShortName} Report* is an HTML report generated by the {PluginName}. From the report landing page you can navigate to detailed reports, such as Application Details, Issues, and Dependencies. | ||
+ | ||
[NOTE] | ||
==== | ||
The report is not generated by default. You must select the *Generate Report* option in the run configuration. | ||
==== |
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,17 @@ | ||
// Module included in the following assemblies: | ||
// | ||
// * docs/eclipse-code-ready-studio-guide/master.adoc | ||
|
||
:_content-type: PROCEDURE | ||
[id="eclipse-analyzing-projects_{context}"] | ||
= Analyzing projects | ||
|
||
You can analyze your projects by running the {PluginName} with a saved run configuration. | ||
|
||
.Procedure | ||
|
||
. In the *{ProductShortName}* perspective, click the *Run* button (image:run_exc.png[Run button]) and select a run configuration. | ||
+ | ||
The {PluginName} analyzes your projects. The *Issue Explorer* displays migration issues that are detected with the ruleset. | ||
|
||
. When you have finished analyzing your projects, stop the {ProductShortName} server in the *Issue Explorer* to conserve memory. |
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,35 @@ | ||
// Module included in the following assemblies: | ||
// | ||
// * docs/eclipse-code-ready-studio-guide/master.adoc | ||
|
||
:_content-type: PROCEDURE | ||
[id="eclipse-configuring-run_{context}"] | ||
= Creating a run configuration | ||
|
||
You can create a run configuration in the *Issue Explorer*. A run configuration specifies the project to analyze, migration path, and additional options. | ||
|
||
You can create multiple run configurations. Each run configuration must have a unique name. | ||
|
||
.Prerequisite | ||
|
||
* You must import your projects into the Eclipse IDE. | ||
|
||
.Procedure | ||
|
||
. In the *Issue Explorer*, click the {ProductShortName} icon (image:Product_Icon-Migration_Toolkit-RGB.png[{ProductShortName} button]) to create a run configuration. | ||
. On the *Input* tab, complete the following fields: | ||
.. Select a migration path. | ||
.. Beside the *Projects* field, click *Add* and select one or more projects. | ||
.. Beside the *Packages* field, click *Add* and select one or more the packages. | ||
+ | ||
[NOTE] | ||
==== | ||
Specifying the packages for analysis reduces the run time. If you do not select any packages, all packages in the project are scanned. | ||
==== | ||
|
||
. On the *Options* tab, you can select *Generate Report* to generate an HTML report. The report is displayed in the *Report* tab and saved as a file. | ||
+ | ||
Other options are displayed. See link:{ProductDocUserGuideURL}#cli-args_cli-guide[About {ProductShortName} command-line arguments] in the _{UserCLIBookName}_ for details. | ||
|
||
. On the *Rules* tab, you can select custom rulesets that you have imported or created for the {PluginName}. | ||
. Click *Run* to start the analysis. |
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,31 @@ | ||
// Module included in the following assemblies: | ||
// | ||
// * docs/eclipse-code-ready-studio-guide/master.adoc | ||
|
||
:_content-type: PROCEDURE | ||
[id="eclipse-creating-custom-ruleset_{context}"] | ||
= Creating a custom ruleset | ||
|
||
You can create a custom ruleset in the *{ProductShortName}* perspective. | ||
|
||
See the link:{ProductDocRulesGuideURL}[_{RulesDevBookName}_] to learn more about creating custom XML rules. | ||
|
||
.Procedure | ||
|
||
. Click the *Rulesets* tab. | ||
. Click the Create Ruleset icon (image:repository-new.gif[Create ruleset icon]). | ||
. Select a project and a directory for the ruleset. | ||
. Enter the file name. | ||
+ | ||
[NOTE] | ||
==== | ||
The file must have the extension `.windup.xml`. | ||
==== | ||
|
||
. Enter a ruleset ID, for example, `my-ruleset-id`. | ||
. Optional: Select *Generate quickstart template* to add basic rule templates to the file. | ||
. Click *Finish*. | ||
. The ruleset file opens in an editor and you can add and edit rules in the file. | ||
. Click the *Source* tab to edit the XML source of the ruleset file. | ||
|
||
You can select the new ruleset when you create a run configuration. |
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,23 @@ | ||
// Module included in the following assemblies: | ||
// | ||
// * docs/eclipse-code-ready-studio-guide/master.adoc | ||
|
||
:_content-type: PROCEDURE | ||
[id="eclipse-importing-custom-ruleset_{context}"] | ||
= Importing a custom ruleset | ||
|
||
You can import a custom ruleset into the {PluginName} to analyze your projects. | ||
|
||
.Prerequisites | ||
|
||
* Custom ruleset file with a `.windup.xml` extension. | ||
+ | ||
See the link:{ProductDocRulesGuideURL}[_{RulesDevBookName}_] for information about creating rulesets. | ||
|
||
.Procedure | ||
|
||
. Click the *Rulesets* tab. | ||
. Click the Import Ruleset icon (image:import-repository.png[Import ruleset icon]). | ||
. Browse to and select the XML rule file to import. | ||
+ | ||
The custom ruleset is displayed when you expand *Custom* on the *Rulesets* tab. |
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,50 @@ | ||
// Module included in the following assemblies: | ||
// | ||
// * docs/eclipse-code-ready-studio-guide/master.adoc | ||
|
||
:_content-type: PROCEDURE | ||
|
||
[id="eclipse-installing-plugin_{context}"] | ||
= Installing in a connected environment | ||
|
||
You need a connected environment to install the {PluginName}. | ||
|
||
The {PluginName} has been tested with the Eclipse IDE for Java Enterprise Developers 2023-03. | ||
|
||
.Prerequisites | ||
|
||
include::snippet_jdk-hardware-mac-prerequisites.adoc[leveloffset=0] | ||
|
||
* link:https://www.eclipse.org/downloads/packages/release/2023-03/r/eclipse-ide-java-developers[Eclipse IDE for Java Enterprise Developers 2023-03] | ||
* JBoss Tools, installed from the link:https://marketplace.eclipse.org/content/jboss-tools[Eclipse Marketplace] | ||
* link:http://download.eclipse.org/mylyn/releases/latest[Mylyn SDK and frameworks], installed with Eclipse | ||
|
||
[NOTE] | ||
==== | ||
Eclipse is pre-configured for Java 17, and the plugin operates directly with Java 17. | ||
|
||
You can also run the plugin with Java 11, which requires setting the JRE version to Java 11 when creating up a new Eclipse project or importing an existing one. See step 6 below. | ||
==== | ||
|
||
.Procedure | ||
|
||
. Launch Eclipse. | ||
. From the menu bar, select *Help* -> *Install New Software*. | ||
. Next to the *Work with* field, click *Add*. | ||
. In the *Name* field, enter `{ProductShortName}`. | ||
. In the *Location* field, enter | ||
ifdef::mtr[] | ||
`https://marketplace.eclipse.org/content/migration-toolkit-runtimes-mtr` and click *OK*. | ||
endif::[] | ||
ifdef::mta[] | ||
`https://marketplace.eclipse.org/content/migration-toolkit-applications-mta` and click *OK*. | ||
endif::[] | ||
. Select the Java version to use. | ||
** If using Java 11, in the *JRE* list, select *JavaSE 11*. | ||
** If using Java 17, leave the *JRE* selection unchanged. | ||
|
||
[start=7] | ||
. Select all the *JBoss Tools - {ProductShortName}* check boxes and click *Next*. | ||
. Review the installation details and click *Next*. | ||
. Accept the terms of the license agreement and click *Finish*. | ||
. Restart Eclipse. |
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,15 @@ | ||
// Module included in the following assemblies: | ||
// | ||
// * docs/eclipse-code-ready-studio-guide/master.adoc | ||
|
||
:_content-type: PROCEDURE | ||
[id="eclipse-resolving-issues_{context}"] | ||
= Resolving issues | ||
|
||
You can resolve issues detected by the {PluginName} by performing one of the following actions: | ||
|
||
* You can double-click the issue to open it in an editor and edit the source code. | ||
+ | ||
The issue displays a Stale icon (image:stale_issue.gif[Stale]) until the next time you run the {PluginName}. | ||
* You can right-click the issue and select *Mark as Fixed*. | ||
* If the issue displays a Quick Fix icon (image:quickfix_error.png[Mandatory with quick fix] image:quickfix_info.png[Optional with quick fix] image:quickfix_warning.png[Warning with quick fix]), you can right-click the issue and select *Preview Quick Fix* and then *Apply Quick Fix*. |
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,36 @@ | ||
// Module included in the following assemblies: | ||
// | ||
// * docs/eclipse-code-ready-studio-guide/master.adoc | ||
|
||
:_content-type: PROCEDURE | ||
[id="eclipse-reviewing-issues_{context}"] | ||
= Reviewing issues | ||
|
||
You can review issues identified by the {PluginName}. | ||
|
||
.Procedure | ||
|
||
. Click *Window* -> *Show View* -> *Issue Explorer*. | ||
. Optional: Filter the issues by clicking the Options menu {kebab}, selecting *Group By* and an option. | ||
+ | ||
image::mta_group_by.png[Issue Explorer "Group By" options] | ||
|
||
. Right-click and select *Issue Details* to view information about the issue, including its severity and how to address it. | ||
+ | ||
The following icons indicate the severity and state of an issue: | ||
+ | ||
.Issue icons | ||
[cols="20%a,80%",options="header",] | ||
|==== | ||
|Icon |Description | ||
|image::error.png[Mandatory] |The issue must be fixed for a successful migration. | ||
|image::info.gif[Optional] |The issue is optional to fix for migration. | ||
|image::warning.png[Warning] |The issue might need to be addressed during migration. | ||
|image::fixedIssue.gif[Resolved] |The issue was resolved. | ||
|image::stale_issue.gif[Stale] |The issue is stale. The code marked as an issue was modified since the last time that {ProductShortName} identified it as an issue. | ||
|image::quickfix_error.png[Mandatory with quick fix] |A quick fix is available for this issue, which is mandatory to fix for a successful migration. | ||
|image::quickfix_info.png[Optional with quick fix] |A quick fix is available for this issue, which is optional to fix for migration. | ||
|image::quickfix_warning.png[Warning with quick fix] |A quick fix is available for this issue, which may potentially be an issue during migration. | ||
|==== | ||
|
||
. Double-click an issue to open the associated line of code in an editor. |
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,22 @@ | ||
// Module included in the following assemblies: | ||
// | ||
// * docs/eclipse-code-ready-studio-guide/master.adoc | ||
|
||
:_content-type: PROCEDURE | ||
[id="eclipse-submitting-ruleset_{context}"] | ||
= Submitting a custom ruleset | ||
|
||
You can submit your custom ruleset for inclusion in the official {ProductShortName} rule repository. This allows your custom rules to be reviewed and included in subsequent releases of {ProductShortName}. | ||
|
||
.Procedure | ||
|
||
. Click the *Rulesets* tab. | ||
. Click the Arrow icon (image:plugin-dropdown.png[Dropdown]) and select *Submit Ruleset*. | ||
. Complete the following fields: | ||
|
||
* *Summary*: Describe the purpose of the rule. This becomes the title of the submission. | ||
* *Code Sample*: Enter an example of the source code that the rule should run against. | ||
* *Description*: Enter a brief description of the rule. | ||
|
||
. Click *Choose Files* and select the ruleset file. | ||
. Click *Submit*. |
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.