Opened 3 years ago

Closed 3 years ago

Last modified 2 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 Changed 3 years ago by Don-vip

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 Changed 3 years ago by simon04

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 Changed 3 years ago by simon04

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 Changed 3 years ago by skyper

Resolution: fixed
Status: closedreopened

The man page needs to be adjusted, too.

comment:5 Changed 3 years ago by simon04

In 16446/josm:

see #18162 - Update man page for --offline

comment:6 in reply to:  4 Changed 3 years ago by simon04

Resolution: fixed
Status: reopenedclosed

Replying to skyper:

The man page needs to be adjusted, too.

Thank you for the reminder!

comment:7 Changed 2 years ago by simon04

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.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.