Chapter 3. Using the web console to analyze applications

You can create a project in the web console to analyze your applications.

Each project groups the applications for a specific analysis, which you can configure with custom rules and labels.

The analysis process generates reports that describe the readiness of your applications for migration or modernization.

3.1. Creating a project

You can create a project in the web console with the Create project wizard.

Procedure

  1. In the web console, click Projects.
  2. Click Create project.
  3. Enter a unique name for the project, an optional description, and click Next.
  4. To upload applications, click the Upload tab, click Browse, select the application files you want to upload, and click Close.

    Uploading applications stores them directly on the MTA server.

  5. To register a server path, click the Server path tab and enter the Server-side path of the application in the field.

    Registering the server path of an application ensures that MTA always uses the latest version.

  6. Click Next.
  7. Click one or more transformation targets.

    Transformation targets
  8. Click Next.
  9. Select packages and click > to include them in the analysis.
  10. Click Next.
  11. If you want to add a custom rule, click Add rule.

    See the Rules Development Guide for more information.

    • To upload a ruleset file, click the Upload tab, click Browse, select one or more files, and click Close.

      A ruleset file must have an .mta.xml or .windup.xml extension. The uploaded file is stored on the MTA server.

    • To register the server path of a ruleset file, click the Server path tab, enter the Rules path, and click Save.

      Registering the server path ensures that the MTA server always uses the latest version of the ruleset files.

  12. Click Next.
  13. If you want to add a custom label, click Add label.

    • To upload a labelset file, click the Upload tab, click Browse, select one or more files, and click Close.

      A labelset file must have an .mta.label.xml or .windup.label.xml extension. The uploaded file is stored on the MTA server.

    • To register a server path, click the Server path tab, enter the Labels path of the label files in the field, and click Save.

      Registering the server path ensures that the MTA server always uses the latest version of the labelset files.

  14. Click Next.
  15. Review the following Advanced options and make any necessary changes:

    • Target
    • Source
    • Exclude tags: Rules with these tags are not processed.
    • Additional classpath: Enter a space-delimited list of additional .jar files or directories so that they are available for decompilation or other analysis.
    • Application name
    • Mavenize group ID
    • Ignore path: Enter a path for files to exclude from analysis.
    • Export CSV: Exports the report data as a CSV file.
    • Disable Tattletale: Disables generation of a Tattletale report for each application.
    • Class Not Found analysis: Enables analysis of Java files that are not available on the class path.

      Note

      This option should not be used if some classes are unavailable for analysis.

    • Compatible Files report: Generating a Compatible Files report might take a long time for large applications.
    • Exploded app: The input directory contains the unpackaged source files of an application.
    • Keep work dirs: Retains temporary files, for example, the graph database or extracted archive files, for debugging purposes.
    • Skip reports: HTML reports are not generated. Must be enabled if you enabled Export CSV.
    • Allow network access: This option reduces performance.
    • Mavenize: Creates a Maven project directory structure based on the structure and content of the application.
    • Source mode: Application files are raw source files, not compiled binaries.
    • Analyze known libraries: Analyze known software artifacts embedded within your application. By default MTA only analyzes application code.

      Note

      This option may result in a longer execution time and a large number of migration issues being reported.

  16. Click Next.
  17. Review your project and click Save or Save and run.

    The project is displayed in the Projects screen.

3.2. Running a saved analysis

You can run a saved analysis.

Procedure

  1. In the web console, click Analysis results.
  2. Select a project.
  3. Click Run analysis.

A progress bar displays the progress of your analysis.

3.3. Viewing analysis results

The results of all analyses are grouped and listed by project on the Analysis results screen.

Procedure

  1. In the web console, click Analysis results.

    Analysis details screen
  2. Select a project from the list.
  3. Click the number of the analysis you want to review.

    The results are displayed in the Results screen, which contains two tabs: Details and Logs.

The Details tab displays important details of the analysis, such as status, start date, duration, and configuration settings.

Figure 3.1. Analysis details screen

Analysis details screen

The Logs tab displays the logs generated during the analysis.

Figure 3.2. Analysis logs screen

Analysis logs screen

3.4. Reviewing reports

The MTA web console provides a set of detailed reports that can help you decide if you need to make any changes to your applications. You access these reports from the Analysis results screen.

The reports are described in detail in MTA reports in the CLI Guide.

Procedure

  1. In the web console, click Analysis results.
  2. Click the Reports icon reports beside the analysis you want to investigate.

    The All applications screen of the reports is displayed.

    Analysis logs screen

3.5. Updating an analysis configuration

You can update an analysis configuration, for example, with a different transformation target, advanced option, or a custom rule. Then you can run the updated analysis in your project.

Procedure

  1. In the web console, click Analysis configuration.

    Analysis configuration screen
  2. Select a Project.
  3. Click the appropriate tabs and make your changes.
  4. Click Save or Save and run.

    The project is displayed in the Projects screen.

3.6. Adding global custom rules

MTA includes a preconfigured set of global rules, which apply to all projects.

You can define your own custom global rules.

For information on writing custom MTA rules, see the MTA Rules Development Guide.

Procedure

  1. In the web console, click Rules configuration.
  2. Click Add rules.
  3. To upload a ruleset file, click the Upload tab, click Browse, select one or more files, and click Close.

    A ruleset file must have an .mta.xml or .windup.xml extension. The uploaded file is stored on the MTA server.

  4. To register the server path of a ruleset file, click the Server path tab, enter the Rules path, and click Save.

    Registering the server path ensures that the MTA server always uses the latest version of the ruleset files.

    The Custom rules list displays the rules.

3.7. Adding global custom labels

MTA includes a preconfigured set of global labels, which apply to all projects.

You can define your own custom global labels.

Procedure

  1. In the web console, click Labels configuration.
  2. Click Add label.
  3. To upload a labelset file, click the Upload tab, click Browse, select one or more files, and click Close.

    A labelset file must have an .mta.label.xml or .windup.label.xml extension. The uploaded file is stored on the MTA server.

  4. To register the server path of a labelset file, click the Server path tab, enter the Labels path, and click Save.

    Registering the server path ensures that the MTA server always uses the latest version of the labelset files.

    The Custom labels list displays the labels.