Following brief discussion on #Maven, I've had a look at the plugin and think the following would be the simplest approach - only requiring some changes to the ChangeLog class and an equals method in ChangeLogEntry.
1. Add equals method to ChangeLogEntry to compare author, date and comment.
2. Add maven.changelog.incremental property and corresponding boolean property in ChangeLog.java
3. Prior to calling generateEntries() in ChangeLog::doExecute() method:
if(incremental && output.exists())
{
if(range != null && isn't empty)
{
// Parse existing xml file and build the entries list from it.
// Parse range to get number of days
// Reduce range value up to (e.g.) last day in the entries list
}
else
{
// Friendly warning message saying that incremental property will have no effect.
}
}
4. in ChangeLog::generateEntries
if (!entries.isEmpty()) { // Merge the entries with those returned from the parser } else { // Just set the list as before. }
Does this sound sensible?
Luke.
-- Luke Taylor. Monkey Machine Ltd. PGP Key ID: 0x57E9523C http://www.monkeymachine.ltd.uk
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]