Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3384

Cache lastModified info in myfaces-builder-plugin to prevent unnecessary executions

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: build process
    • Labels:
      None

      Description

      Some weeks ago I saw that maven checkstyle plugin creates a property file that store all lastModified dates of each file that is checked, to prevent unnecessary executions and improve speed. The hack is easy to do, but it is necessary move some refactor some code.

      In few words, the idea is get the lastModified date of each file parsed or used by myfaces-builder-plugin and save it in a file. When the goal is called again, it checks all files again and if the dates are the same, skip the goal. Additionally, myfaces-metadata.xml lastModified is saved and associated to each generated file. So if myfaces-metadata.xml is refreshed, we can check if the generated file has a previous lastModified date and if that so, create the file again.

        Attachments

          Activity

            People

            • Assignee:
              lu4242 Leonardo Uribe
              Reporter:
              lu4242 Leonardo Uribe
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: