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

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • build process
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: