Ce contenu n'est pas disponible dans la langue sélectionnée.

Chapter 4. Reviewing and resolving migration issues


You can review and resolve migration issues identified by the MTR plugin in the left pane.

4.1. Reviewing issues

You can use the MTR plugin icons to prioritize issues based on their severity. You can see which issues have a Quick Fix automatic code replacement and which do not.

The results of an analysis are displayed in a directory format, showing the hints and classifications for each application analyzed.

A hint is a read-only snippet of code that contains a single issue that you should or must address before you can modernize or migrate an application. Often a Quick Fix is suggested, which you can accept or ignore.

A classification is a file that has an issue but does not have any suggested Quick Fixes. You can edit a classification.

Procedure

  1. In the Migration Toolkit for Runtimes view, select a run configuration directory in the left pane.
  2. Click Results.

    The modules and applications of the run configuration are displayed, with hints and classifications beneath each application.

  3. Prioritize issues based on the following icons, which are displayed next to each hint:

    • Mandatory : You must fix this issue in order to migrate or modernize the application.
    • Warning : You might need to fix this issue in order to migrate or modernize the application
  4. Optional: To learn more about a hint, right-click it and select Show More Details.

4.2. Resolving issues

You can resolve issues by doing one of the following:

  • Using a Quick Fix to fix a code snippet that has a hint
  • Editing the code of a file that appears in a classification

4.2.1. Using a Quick Fix

You can use a Quick Fix automatic code replacement to save time and ensure consistency in resolving repetitive issues. Quick Fixes are available for many issues displayed in the Hints section of the Results directory.

Procedure

  1. In the left pane, click a hint that has an error indicator.

    Any Quick Fixes are displayed as child folders with the Quick Fix icon ( Quickfix ) on their left side.

  2. Right-click a Quick Fix and select Preview Quick Fix.

    The current code and the suggested change are displayed in the Preview Quick Fix window.

  3. To accept the suggested fix, click Apply Quick Fix.
  4. Optional: Right-click the issue and select Mark As Complete.

    A green check ( Complete ) is displayed by the hint, replacing the error indicator.

4.2.2. Editing the code of a file

You can directly edit a file displayed in the Classifications section of the Results directory. These files do not have any Quick Fixes.

Procedure

  1. In the left pane, click the file you want to edit.
  2. Make any changes needed to the code and save the file.
  3. Optional: Right-click the issue and select Mark as Complete or Delete.

    If you select Mark as Complete, a green check ( Complete ) is displayed by the hint, replacing the error indicator.

Red Hat logoGithubRedditYoutubeTwitter

Apprendre

Essayez, achetez et vendez

Communautés

À propos de la documentation Red Hat

Nous aidons les utilisateurs de Red Hat à innover et à atteindre leurs objectifs grâce à nos produits et services avec un contenu auquel ils peuvent faire confiance.

Rendre l’open source plus inclusif

Red Hat s'engage à remplacer le langage problématique dans notre code, notre documentation et nos propriétés Web. Pour plus de détails, consultez leBlog Red Hat.

À propos de Red Hat

Nous proposons des solutions renforcées qui facilitent le travail des entreprises sur plusieurs plates-formes et environnements, du centre de données central à la périphérie du réseau.

© 2024 Red Hat, Inc.