[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[stellation-res] LogEntry timestamp fix (#34180)
|
There's one point I forgot to mention yesterday, which I'd
like feedback on:
The current fix is not backwards-compatible with existing
log.xml files. Reason: at least two different "time" attribute
formats have been used prior to the current usage, and I choose
not to write conversion code. (As far as I know, no one is using
a Stellation db which cannot be rebuilt fairly easily.)
If anyone has existing log.xml files they want to preserve,
I can write code to do "best-effort" conversion for LogEntries
lacking a "timestamp" attribute. (It would attempt to parse
the "time" attribute, iterating through different SimpleDateFormat
parse formats until parsing succeeded or the list (4-6 entries) of
parse formats was exhausted.)
Mark has just verified the fix, so I'm going to check it in.
If there's need to amend the fix for legacy log.xml files, I can do
that.
Comments?
Regards
- Jim
--------------------------------------------------------------------
Jim Wright, IBM T.J. Watson Research Center
*** The Stellation project: Advanced SCM for Collaboration
*** http://www.eclipse.org/stellation
*** Work Email: jwright@xxxxxxxxxxxxxx ------- Personal Email:
jim.wright@xxxxxxx