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

Custom rules aren't triggered on apps with both maven and gradle

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • MTA 7.3.0
    • MTA 7.2.1
    • None
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • False
    • None

      Description of problem:

       
      There is a weird behaviour in apps that have both maven and gradle:
       
      I took the spring-petclinic as an example and I manually downloaded the code to a folder and cloned it to a different one.
       
      The one that I cloned works as expected, but the one that I manually downloaded doesn't match any custom rule. In this last case I can see that the .classpath file is not generated.When looking at the .project file, the cloned app displays both "natures"
       
       

      <natures>     
      <nature>org.eclipse.jdt.core.javanature</nature>                                      <nature>org.eclipse.buildship.core.gradleprojectnature</nature> 
      </natures>

       
      But the downloaded app displays gradle only
       
       

      <natures> 
      <nature>org.eclipse.buildship.core.gradleprojectnature</nature>
      </natures>  

       
      If I manually remove all the gradle files from the project leaving just maven files, everything works as expected and the rules match.
       

      I'm attaching both apps (cloned and downloaded), their respective reports and the custom rule I used to test this

        1. custom-rule-for-petclinic.yaml
          0.3 kB
        2. report-cloned.zip
          2.77 MB
        3. report-downloaded.zip
          2.76 MB
        4. spring-petclinic.zip
          10.89 MB
        5. spring-petclinic-downloaded.zip
          495 kB

              jleflete@redhat.com Juanma Leflet Estrada
              rh-ee-abrugaro Alejandro Brugarolas
              Alejandro Brugarolas Alejandro Brugarolas
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: