Cache lastModified info in myfaces-builder-plugin to prevent unnecessary
executions
-----------------------------------------------------------------------------------
Key: MYFACES-3384
URL: https://issues.apache.org/jira/browse/MYFACES-3384
Project: MyFaces Core
Issue Type: Improvement
Components: build process
Reporter: Leonardo Uribe
Assignee: Leonardo Uribe
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira