Uploaded image for project: 'Maven Compiler Plugin'
  1. Maven Compiler Plugin
  2. MCOMPILER-381

Refactoring needed for isDependencyChanged / Using fileExtensions (AbstractCompilerMojo)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.8.1
    • 3.12.0
    • None

    Description

      The code in the class AbstractCompilerMojo has a method isDependencyChanged which uses the attribute fileExtensions which is being changed within the isDependencyChanged method. This attribute is also being used by the method hasNewFile which is a kind of confusing (a control via a global variable).
      Furthermore a change in isDependencyChanged where replacing ".class" with "class" results in a fail which is described here.

      It should be investigated how this code can be made more clear and maybe easier to understand.

      Attachments

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              khmarbaise Karl Heinz Marbaise
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: