Erwin Hogeweg created KARAF-4943:
------------------------------------
Summary: bundle:watch doesn't take timezone into account when
comparing modification date
Key: KARAF-4943
URL: https://issues.apache.org/jira/browse/KARAF-4943
Project: Karaf
Issue Type: Bug
Components: karaf-core
Affects Versions: 4.0.8
Environment: OS X 10.12.2, Java 8
Reporter: Erwin Hogeweg
I noticed that bundle:watch kept restarting the same bundles over-and-over
again. After some digging I believe this behavior is caused by
BundleWatchImpl:163
if (location != null && location.exists() && location.lastModified() >
bundle.getLastModified()) {
The location.lastModified() returns the timestamp in GMT, while the
bundle.lastModified() returns the timestamp in local time.
Verified with Felix and Equinox.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)