Uploaded image for project: 'Migration Toolkit for Applications'
  1. Migration Toolkit for Applications
  2. MTA-4307

[Containerless CLI] Bulk analysis doesn't work on Windows

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • None

      Description of problem:

      Bulk analysis doesn't work on Windows, running second command argues that previous was performed without `--bulk` option

      Version-Release number of selected component (if applicable):

      7.2.0-33 

      How reproducible:

      100% 

      Steps to Reproduce:
      1. Run bulk analysis with the command like

      C:\Users\Admin\windows-mta-cli.exe analyze --bulk --input C:\Users\Admin\kantra-cli-tests\data/applications\jee-example-app-1.0.0.ear --output C:\Users\Admin\kantra-cli-tests\reports --source weblogic --target eap7
      

      2. Run similar command with same output place and another binary

      Actual results:

      C:\Users\Admin>C:\Users\Admin\windows-mta-cli.exe analyze --bulk --input C:\Users\Admin\kantra-cli-tests\data/applications\AdministracionEfectivo.ear --output C:\Users\Admin\kantra-cli-tests\reports --target eap8
      time="2024-11-27T19:39:28Z" level=info msg="\n --run-local set. running analysis in containerless mode"
      time="2024-11-27T19:39:28Z" level=info msg="running source analysis"
      time="2024-11-27T19:39:28Z" level=info msg="creating provider config"
      time="2024-11-27T19:39:28Z" level=info msg="setting provider from provider config" provider=java
      time="2024-11-27T19:39:28Z" level=info msg="setting provider from provider config" provider=builtin
      time="2024-11-27T19:39:28Z" level=info msg="parsing rules for analysis" rules="C:\\Users\\Admin\\.kantra\\rulesets"
      time="2024-11-27T19:39:30Z" level=info msg="starting provider" provider=java
      time="2024-11-27T19:39:54Z" level=info msg="starting provider" provider=builtin
      time="2024-11-27T19:39:54Z" level=info msg="running depencency analysis"
      time="2024-11-27T19:39:54Z" level=info msg="evaluating rules for violations. see analysis.log for more info"
      time="2024-11-27T19:40:59Z" level=info msg="writing analysis results to output" output="C:\\Users\\Admin\\kantra-cli-tests\\reports"
      time="2024-11-27T19:40:59Z" level=info msg="generating static report"
      time="2024-11-27T19:40:59Z" level=info msg="Static report created. Access it at this URL:" URL="file:///C:/Users/Admin/kantra-cli-tests/reports/static-report/index.html"
      
      C:\Users\Admin>C:\Users\Admin\windows-mta-cli.exe analyze --bulk --input C:\Users\Admin\kantra-cli-tests\data/applications\jee-example-app-1.0.0.ear --output C:\Users\Admin\kantra-cli-tests\reports --source weblogic --target eap7
      time="2024-11-27T19:41:25Z" level=error msg="failed to validate flags" error="output dir C:\\Users\\Admin\\kantra-cli-tests\\reports already contains 'analysis.log', it was used for single application analysis or there is running --bulk analysis, try another output dir"
      Error: output dir C:\Users\Admin\kantra-cli-tests\reports already contains 'analysis.log', it was used for single application analysis or there is running --bulk analysis, try another output dir
      

      Expected results:

      It should work  

      Additional info:

              rhn-engineering-maufart Marek Aufart
              ibragins@redhat.com Igor Braginsky
              Igor Braginsky Igor Braginsky
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: