[rfc][icedtea-web] MD5SumWatcher util

Andrew Azores aazores at redhat.com
Mon Mar 10 18:28:23 UTC 2014


This adds a small utility class that makes it easy to check when a 
file's contents on disk have been changed. This needs to be custom built 
here because we don't have access to nio2 yet, and pulling in an Apache 
lib dependency just for this is overkill.

The motivation is to add this kind of checking functionality into 
PolicyEditor so that a dialog can be shown and the user prompted on what 
to do if the policy file is modified both by PolicyEditor and externally.


Added MD5SumWatcher utility class to detect when a file's contents have been
changed on disk.
* netx/net/sourceforge/jnlp/util/FileUtils.java: (getFileMD5Sum) new 
* netx/net/sourceforge/jnlp/util/MD5SumWatcher.java: new class
* tests/netx/unit/net/sourceforge/jnlp/util/MD5SumWatcherTest.java: new 
for MD5SumWatcher


Andrew A

-------------- next part --------------
A non-text attachment was scrubbed...
Name: md5sumwatcher.patch
Type: text/x-patch
Size: 11242 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20140310/4845f0f7/md5sumwatcher.patch>

More information about the distro-pkg-dev mailing list