Opened 4 years ago

Closed 4 years ago

Last modified 3 years ago

#18162 closed enhancement (fixed)

Disable various updates using --offline=CACHE_UPDATES

Reported by: simon04 Owned by: simon04
Priority: normal Milestone: 20.05
Component: Core Version:
Keywords: sotm19 offline Cc: flohoff


On slow internet connections, one would like to not fetch any updates. This includes plugins, imagery backgrounds, custom styles (especially their icon sets), presets, etc.

Specifying --offline=updates should not ask for or perform any updates. CachedFile should give the cached version w/o determining whether it's still up-to-date. The goal is to avoid unnecessary network traffic when JOSM is started with this option.

This is similar to --offline=josm_website, but user initiated network access (such as help) should not be disabled.

Attachments (0)

Change History (7)

comment:1 by Don-vip, 4 years ago

I'm not sure if --offlines=updates is the right way to do it or if we should create a new parameter (--no-updates?). The offline value is more a functional download source rather than a technical mode.

comment:2 by simon04, 4 years ago

Milestone: 20.05
Owner: changed from team to simon04
Status: newassigned
Summary: Disable various updates using --offline=updatesDisable various updates using --offline=CACHE_UPDATES

NetworkManager and OnlineResource are working together so nicely. Thus, I'll be (a bit mis)using --offline for this purpose.

$ java -jar josm-latest.jar --offline=CACHE_UPDATES 
2020-05-16 21:54:42.905 WARNING: JOSM is running in offline mode. This resource will not be available: Cache updates
2020-05-16 21:54:44.754 WARNING: Cache update for not available (offline mode)

comment:3 by simon04, 4 years ago

Resolution: fixed
Status: assignedclosed

In 16430/josm:

fix #18162, see #18712 - Add --offline=CACHE_UPDATES to disable updates of CachedFiles

This includes imagery index, custom styles, presets.

comment:4 by skyper, 4 years ago

Resolution: fixed
Status: closedreopened

The man page needs to be adjusted, too.

comment:5 by simon04, 4 years ago

In 16446/josm:

see #18162 - Update man page for --offline

in reply to:  4 comment:6 by simon04, 4 years ago

Resolution: fixed
Status: reopenedclosed

Replying to skyper:

The man page needs to be adjusted, too.

Thank you for the reminder!

comment:7 by simon04, 3 years ago

In 16964/josm:

fix #13586, see #18162 - Preferences: do not update source entries automatically when --offline=CACHE_UPDATES

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain simon04.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.