[rfc][icedtea-web] MD5SumWatcher util
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
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 11242 bytes
Desc: not available
More information about the distro-pkg-dev