Uploaded image for project: 'WINDUP - Red Hat Application Migration Toolkit'
  1. WINDUP - Red Hat Application Migration Toolkit
  2. WINDUP-3337

Analysis through IDE doesn't fail if a custom target is not found within custom rulesets

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • None
    • None
    • False
    • None
    • False
    • Hide
      * *Why we missed the bug?*
       ** Pick to proper answer from drop-down field upper.
       +_Additional comments:_+


       * *What is required:*
       ** Pick to proper answer from drop-down field upper.
       +_Additional comments:_+
      Show
      * *Why we missed the bug?*  ** Pick to proper answer from drop-down field upper.  +_Additional comments:_+  * *What is required:*  ** Pick to proper answer from drop-down field upper.  +_Additional comments:_+
    • ---
    • ---

    Description

      Analysis through IDE doesn't fail if a custom target is not found within a custom ruleset. To further narrow down the issue, I analyzed the same project through mta-cli and analysis through mta-cli rightly fails if a custom target is not found within the custom ruleset. The testing was done on VSC.

      Here's the output when the analysis was run through mta-cli.

      ------------------------------------------------------------------------------

      #./mta-cli --target ab --sourceMode --userRulesDirectory ~/Downloads/rules --input ~/migration/windup-rulesets/rules-reviewed/eap7/eap72/tests/data

      ERROR: target value (ab --sourceMode) not found, must be one of: [quarkus1, openliberty, cloud-readiness, jbpm, quarkus, drools, fsw, eap7, hibernate, java-ee, eap6, fuse, eapxp, openjdk, jakarta-ee, eap, camel, linux, openjdk11, hibernate-search, resteasy, rhr] 

       

      Here's the output when the analysis was run through VSC:

      ----------------------------------------------------------------------------

      Using MTA at /home/nachandr/.config/Code/User/globalStorage/redhat.mta-vscode-extension/.mta/tooling/vscode/mta-cli/mta-cli-5.3.0.Alpha2
      Migration Toolkit for Applications by Red Hat (MTA) CLI, version [ 5.3.0.Alpha2 ] - [ https://developers.redhat.com/products/mta/overview/ ]
      Calling ToolingModeRunner...
      Using Data:
      input: [/home/nachandr/migration/windup-rulesets/rules-reviewed/eap7/eap72/tests/data]
      output: /home/nachandr/.config/Code/User/globalStorage/redhat.mta-vscode-extension/.mta/tooling/vscode/os4870ykf-6423ybuzu
      sourceMode: true
      skipReport: false
      ignorePatterns: []
      windupHome: /home/nachandr/.config/Code/User/globalStorage/redhat.mta-vscode-extension/.mta/tooling/vscode/mta-cli/mta-cli-5.3.0.Alpha2
      source: []
      target: [ab]
      userRulesDirectory: [/home/nachandr/Downloads/rules]

      ...

      ...

      ...

      Rule [RenderRuleProviderReportRuleProvider from org.jboss.windup.reporting.rules.rendering.RenderRuleProviderReportRuleProvider loaded from ModuleClassLoader for Module "org.jboss.windup.reporting.windup-reporting:5.3.0.Alpha2_de98b7a4-5f52-4c26-9f70-c5915bd81991" from AddonModuleLoader] matched and will be performed.

      Reporting: Writing template "/reports/templates/ruleprovidersummary.ftl" to output file "/home/nachandr/.config/Code/User/globalStorage/redhat.mta-vscode-extension/.mta/tooling/vscode/os4870ykf-6423ybuzu/reports/windup_ruleproviders.html"

      PostFinalizePhase - DeleteWorkDirsAtTheEndRuleProvider - DeleteWorkDirsAtTheEndRuleProvider_1
      PostFinalizePhase - DeleteWorkDirsAtTheEndRuleProvider - DeleteWorkDirsAtTheEndRuleProvider_2

      Rule [DeleteWorkDirsAtTheEndRuleProvider from org.jboss.windup.rules.apps.java.scan.provider.DeleteWorkDirsAtTheEndRuleProvider loaded from ModuleClassLoader for Module "org.jboss.windup.rules.apps.windup-rules-java:5.3.0.Alpha2_50e4f46b-139c-402a-9f90-35b1ae2a342f" from AddonModuleLoader] matched and will be performed.

      MTA execution took 33 seconds to execute on input: [/home/nachandr/migration/windup-rulesets/rules-reviewed/eap7/eap72/tests/data]!

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-nachandr Nandini Chandra
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: