NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Ticket #1452 (closed enhancement: fixed)

Opened 2012-09-04T10:52:26-05:00

Last modified 2013-08-15T15:05:52-05:00

Provide an easy way to drive the updater for 3rd party update sites

Reported by: dscho Owned by: dscho
Priority: minor Milestone: imagej2-b7-ndim-data
Component: Updater Version:
Severity: minor Keywords:
Cc: melissa@…, ctrueden@… Blocked By:
Blocking: #1901

Description

We want to offer easy uploading for projects such as Bio-Formats. This means that we should not require a graphical upload but provide a scriptable way, such as the command-line updater.

A couple of issues need to be addressed for this to be convenient, though:

  • It should be easy to upload/remove from a given working directory, i.e. upload everything that is new (including new files) and remove everything that is no longer there
  • We need to make sure that cross-site dependencies, such as IJ2 depending on BF depending on IJ1 are handled gracefully.

Change History

comment:1 Changed 2012-09-04T11:03:07-05:00 by melissa

comment:2 Changed 2012-12-27T13:53:18-06:00 by curtis

  • Component changed from ij-core to ij-updater

comment:3 Changed 2013-02-25T12:38:24-06:00 by dscho

To accomplish this target, we need to extend the 'upload' subcommand of the command-line updater to take a --update-site= argument and automatically assign this update site to all the files passed via that command line. That way, we can glob all the to-be-added files, even if they haven't been uploaded before.

comment:4 Changed 2013-03-07T13:02:57-06:00 by bdezonia

  • Milestone changed from imagej2-b7-ndim-data to imagej2-b8-analysis

comment:5 Changed 2013-03-22T15:51:27-05:00 by dscho

One enhancement relevant to this ticket is that you can now specify which upload site you want to upload to. This will upload all specified files to the given update site, even if they are new.

There is not yet a mode to force shadowing (i.e. uploading components to update sites that will then override other update sites' components), though.

comment:6 Changed 2013-04-04T13:59:48-05:00 by dscho

The new upload-complete-site command will help, I am sure. There is no mode yet to force-shadow existing update sites' files with overriding ones (think: shadowing a stable loci_plugins.jar from an unstable update site), but we're slowly getting there: 8b7bcce95fef6254b829d7dbab421454d1d2d816

comment:7 Changed 2013-04-04T17:51:30-05:00 by dscho

  • Status changed from new to closed
  • Resolution set to fixed

With f1103cf3f15658e42eebd6d9fc7c69aa9ffcc8c4 I declare this issue closed. I would just wish that others would work as hard for my wishes as I do for theirs.

comment:8 Changed 2013-04-11T17:36:37-05:00 by dscho

This actually needed a bit more work, including adding a --simulate option. See the four commits leading up to d0d383ca116371ef9de6ccc5d8b4e370a3023835. Now it is truly fixed (and was used to upload ImageJ itself, tagged as uploaded-2013-04-11).

comment:9 Changed 2013-05-31T16:04:29-05:00 by bdezonia

  • Blocking 1901 added; 1347 removed

comment:10 Changed 2013-05-31T16:11:10-05:00 by bdezonia

  • Milestone changed from imagej2-b8-analysis to imagej2-b7-ndim-data

comment:11 Changed 2013-08-15T15:05:52-05:00 by dscho

In a blatant move to side-step my educative exercise to let the people most interested in a certain feature take care of making said feature a reality instead, Curtis went ahead and set up a Jenkins job:

 http://jenkins.imagej.net/view/All/job/Bio-Formats-ImageJ-daily/

and added the corresponding update site to the list of update sites presented in the updater's site dialog:

 http://fiji.sc/index.php?title=List_of_update_sites&curid=1690&diff=8451&oldid=8384

Thanks, Curtis.