It adds a boolean official flag to UpdateSite with corresponding API, so that update sites gleaned from the official list of update sites can be flagged as such.
It adds a getUpdateSite(File) method to the UpdateService to identify which update site (if any) yielded a particular file of the ImageJ installation.
I looked into adding an automated test for the new UpdateService method but it would be quite involved, due to the updater's current architecture. I have been using this branch when testing imagej-usage, and the code is working.
This branch makes two changes which will be needed by the impending ImageJ usage statistics project:
boolean official
flag toUpdateSite
with corresponding API, so that update sites gleaned from the official list of update sites can be flagged as such.getUpdateSite(File)
method to theUpdateService
to identify which update site (if any) yielded a particular file of the ImageJ installation.I looked into adding an automated test for the new
UpdateService
method but it would be quite involved, due to the updater's current architecture. I have been using this branch when testingimagej-usage
, and the code is working.