Changes between Version 41 and Version 42 of Help/CommandLineOptions


Ignore:
Timestamp:
2021-01-19T10:52:03+01:00 (4 years ago)
Author:
Hb---
Comment:

URL format (with lat=x&lon=y&zoom=z) is outdated. Logging like #20401. All example data around Big Ben

Legend:

Unmodified
Added
Removed
Modified
  • Help/CommandLineOptions

    v41 v42  
    77 * The [#Programarguments Program arguments⤓] directly control JOSM. They are called ''args'' by Java.
    88 * The [#Javaoptions Java options⤓] affect its environment (JVM) and are sometimes named ''VM arguments''.
    9  * Involved in Web Start and diagnosis are the [#run-options Run-options⤓].
     9 * The [#run-options Run-options⤓] are involved in WebStart. Some are for diagnosis and import.
    1010 * Some [#Otheroptions Other options⤓] for helper programs.
    1111
     
    1313#!sh
    1414# Running a jar
    15 java [Java options] -jar josm-tested.jar [Program arguments]
     15java [Java options] -jar josm.jar [Program arguments]
    1616
    1717# Launch a Web Start
     
    1919}}}
    2020
    21 The [wikitr:/Help/Action/ShowStatusReport Status Report] lists the given Program arguments and Java options in its second section.
     21The [wikitr:/Help/Action/ShowStatusReport Status Report] from the Help menu lists the given Program arguments and Java options.
    2222Some [#Examples examples⤓] for both of them are shown below.
    23 As usual the arguments are separated by space from each other.
     23
     24**Note:** The term {{{josm.jar}}} is a common abbreviation for the file names ''josm-tested.jar'' and ''josm-latest.jar''.
     25The name ''josm.jnlp'' also stands for ''josm-latest.jnlp''.
     26As usual the command line arguments are separated by space from each other.
     27
    2428
    2529== Program arguments for JOSM ==#Programarguments
     
    5054        --geometry=widthxheight(+|-)x(+|-)y       Standard unix geometry argument
    5155        [--download=]minlat,minlon,maxlat,maxlon  Download the bounding box
    52         [--download=]<URL>                        Download the location at the URL (with lat=x&lon=y&zoom=z)
    53         [--download=]<filename>                   Open a file (any file type that can be opened with File/Open)
     56        [--download=]<URL>                        Download the location at the OSM-style URL
     57        [--download=]<filename>                   Open a file (any type suitable for File/Open)
    5458        --downloadgps=minlat,minlon,maxlat,maxlon Download the bounding box as raw GPS
    55         --downloadgps=<URL>                       Download the location at the URL (with lat=x&lon=y&zoom=z) as raw GPS
     59        --downloadgps=<URL>                       Download the location at the URL as raw GPS
    5660        --selection=<searchstring>                Select with the given search
    5761        --[no-]maximize                           Launch in maximised mode
     
    6670        --version                                 Displays the JOSM version and exits
    6771
    68         --debug                                   Print debugging messages to console
     72        --debug                                   Print debug info on Mapview and stdout (console)
    6973
    7074        --skip-plugins                            Skip loading plugins
     
    106110When the non-ASCII characters in the command prompt are scrambled, use `-Dfile.encoding=Cp850` to receive text from Java in another [https://docs.oracle.com/javase/8/docs/technotes/guides/intl/encoding.doc.html code page].
    107111Which [https://msdn.microsoft.com/de-de/library/windows/desktop/dd317756%28v=vs.85%29.aspx code page] is used shows `chcp⏎` in the terminal.
    108 For UTF-8 on Windows, invoke `chcp 65001` in the Windows terminal window before launching JOSM using `java -Dfile.encoding=UTF-8 -jar josm-tested.jar`
     112For UTF-8 on Windows, invoke `chcp 65001` in the Windows terminal window before launching JOSM using `java -Dfile.encoding=UTF-8 -jar josm.jar`
    109113
    110114[=#Examples **Examples for JOSM runjosm options and Java options**]
     
    112116#!sh
    113117# Load three files
    114   java -jar josm-tested.jar track1.gpx BigBen.jpg "london data.osm"
     118  java -jar josm.jar track1.gpx BigBen.jpg "london data.osm"
    115119# Download from OSM according to an URL with zoom and coordinates
    116   java -jar josm-tested.jar https://www.openstreetmap.org/#map=19/51.51/-0.135
     120  java -jar josm.jar https://www.openstreetmap.org/#map=18/51.501/-0.124
    117121# Download a bounding box and select every element matching a string
    118   java -jar josm-tested.jar 51.505,-0.14,51.515,-0.13 --selection="Piccadilly Circus"
     122  java -jar josm.jar 51.500,-0.126,51.502,-0.122 --selection="Big Ben"
    119123#
    120124# Set directory for JOSM according to a property from the operating system
    121   java -Djosm.pref=$XDG_CONFIG_HOME -jar josm-tested.jar
     125  java -Djosm.pref=$XDG_CONFIG_HOME -jar josm.jar
    122126# Quotations for a value with space and show JOSMs GUI in English
    123   java -Djosm.dir.name="josm dev" -jar josm-latest.jar --language=en
    124 # Set the common directory in a sub-subdirectroy below the active command prompt
    125   java -Djosm.home=biketour2017/london -jar josm-tested.jar
    126 # More memory in the Canadian variant of an English spoken environment
    127   java -Xmx1024m -Duser.language=en -Duser.country=CA -jar josm-latest.jar
     127  java -Djosm.dir.name="josm dev" -jar josm.jar --language=en
     128# Set the common directory in a sub-subdirectory below the active command prompt
     129  java -Djosm.home=biketour2017/london -jar josm.jar
     130# More memory and without phoning home
     131  java -Xmx1024m --set=message.notifier.enabled=false -jar josm.jar
    128132#
    129 # Log debug info and do not get disturbed by JOSM phoning home
    130   java -verbose -jar josm-latest.jar --set=message.notifier.enabled=false --debug >WhatsUp.txt
     133# Start in an English environment and log debug info plus messages from stderr
     134  java -Duser.language=en -jar josm.jar --debug 1>logfile.txt 2>&1
    131135}}}
    132136
    133137
    134138== Run-options for Java Web Start ==#run-options
     139
    135140The run-options are read by the `javaws` command. They control the Web Start mechanism, can encapsulate Java options and can diagnose Java.
    136141{{{
     
    256261}}}
    257262
    258 On this page 'josm.jar' is short for one of the releases josm-tested.jar or josm-latest.jar.
    259263
    260264== See also ==