Mark Struberg created MSHARED-243:
-------------------------------------
Summary: add a way to calculate diffs of a directory at 2
different times
Key: MSHARED-243
URL: https://jira.codehaus.org/browse/MSHARED-243
Project: Maven Shared Components
Issue Type: New Feature
Components: maven-shared-utils
Reporter: Mark Struberg
For implementing the incremental build it should be possible to detect which
files got created by a certain mojo execution.
An example would be the maven-compiler-plugin which currently doesn't remove
class files for Java sources which got deleted.
The idea is to introduce a helper which can capture a snapshot of a certain
directory (e.g. target/classes), then you do the mojo work (javac invocation
with all source files) and take a capture of that very directory again.
The tool will allow you to take a 'diff' and store the names of all the added
files to a file in target/...
The next time you invoke a build you can delete all those created classes by
this very mojo-execution and so you do not have any left-overs.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira