Bug#775010: libmaven-archiver-java: please allow pom.properties' date to be deterministic

Emmanuel Bourg ebourg at apache.org
Sat Jan 10 21:19:19 UTC 2015


Le 10/01/2015 17:54, Chris West a écrit :

> I've updated the patch to replace the line.  This assumes
> that it is present; would be great if this kind of thing
> was specified.  It's hard to verify the assumption as the
> date comes out in locale format.

Thank you for the update. It's safe to assume the date always follow the
comment specified, the Javadoc for the store() method states:

"Next, a comment line is always written, consisting of an ASCII #
character, the current date and time (as if produced by the toString
method of Date for the current time), and a line separator as generated
by the Writer."

The call to Arrays.sort() isn't necessary but it doesn't hurt.



More information about the pkg-java-maintainers mailing list