Ticket #24993: 1-docs-linux-manpages.patch
| File 1-docs-linux-manpages.patch, 33.3 KB (added by , 5 hours ago) |
|---|
-
README
diff --git a/README b/README index 523b073a11..59705cfea9 100644
a b Microsoft Windows and Apple macOS users should visit one of: 21 21 - https://bell-sw.com/pages/downloads/#mn 22 22 and download the latest Java executable for their system. 23 23 24 Linux users should visit http://www.oracle.com/technetwork/java/index.html25 There is a Linux binary installer, which you must execute from a console, or 26 use the mechanism of your distribution's packaging system.24 Linux users should install OpenJDK using the mechanism of their distribution's 25 packaging system (e.g. "sudo apt install default-jre openjfx" on Debian/Ubuntu), 26 or download a JDK from one of the links above. 27 27 28 28 29 29 How to launch -
deleted file native/Dockerfile
diff --git a/native/Dockerfile b/native/Dockerfile deleted file mode 100644 index fdb8f590b2..0000000000
+ - 1 FROM openjdk:8-jdk-alpine2 3 RUN apk update && \4 apk add apache-ant && \5 apk add ttf-dejavu && \6 apk add subversion && \7 apk add git && \8 rm /var/cache/apk/*9 10 COPY . /josm11 12 RUN mkdir -p /josm/test/report13 14 CMD cd /josm && \15 ant test-html -DnoJavaFX=true -
deleted file native/docker-test.bat
diff --git a/native/docker-test.bat b/native/docker-test.bat deleted file mode 100644 index 1041e1af8b..0000000000
+ - 1 docker build . -t josm/josm2 mkdir %CD%\test\report3 docker run -it --name josm -v %CD%\test\report:/josm/test/report josm/josm4 docker rm josm5 docker rmi josm/josm6 pause -
deleted file native/docker-test.sh
diff --git a/native/docker-test.sh b/native/docker-test.sh deleted file mode 100644 index 0823586358..0000000000
+ - 1 #!/bin/bash2 3 docker build . -t josm/josm4 mkdir -p test/report5 docker run -it --name josm -v "$(pwd)"/test/report:/josm/test/report josm/josm6 docker rm josm7 docker rmi josm/josm -
native/linux/latest/DEBIAN/control
diff --git a/native/linux/latest/DEBIAN/control b/native/linux/latest/DEBIAN/control index 957f01cded..30d8d2e0d4 100644
a b Architecture: all 8 8 Depends: default-jre (>= 2:1.17) | java11-runtime, 9 9 proj-data, fonts-noto, openjfx 10 10 Description: Editor for OpenStreetMap (daily development snapshot) 11 JOSM is an e ditor for OpenStreetMap (OSM) written in Java.12 The current version supports stand alone GPX tracks, GPX track data13 from OSM database and existing nodes, line segments and metadata tags14 from the OSM database.11 JOSM is an extensible editor for OpenStreetMap (OSM) written in Java. 12 It supports loading GPX tracks, background imagery and OSM data from 13 local sources as well as from online sources and allows to edit the 14 OSM data (nodes, ways and relations) and their metadata tags. 15 15 . 16 OpenStreetMap is a project aimed squarely at creating and providing17 free geographic data such as street maps to anyone who wants them.18 The project was started because most maps you think of as free actually19 have legal or technical restrictions on their use, holding back people20 from using them in creative, productive or unexpected ways.16 OpenStreetMap is a project aimed squarely at creating and providing 17 free geographic data such as street maps to anyone who wants them. 18 The project was started because most maps you think of as free actually 19 have legal or technical restrictions on their use, holding back people 20 from using them in creative, productive or unexpected ways. 21 21 22 22 23 23 -
native/linux/latest/etc/default/josm-latest
diff --git a/native/linux/latest/etc/default/josm-latest b/native/linux/latest/etc/default/josm-latest index bb792ca8c7..00495f8d49 100644
a b 7 7 # Enable OpenGL pipeline (2D graphic accelerators) 8 8 #JAVA_OPTS="-Dsun.java2d.opengl=True ${JAVA_OPTS}" 9 9 10 # Use a specific Java executable instead of the automatic selection 11 #JAVACMD="/usr/lib/jvm/java-21-openjdk-amd64/bin/java" 12 13 # Location of the OpenJFX modules (default: /usr/share/openjfx/lib) 14 #JAVAFX_HOME="/usr/share/openjfx/lib" 15 16 # Additional Java module path entries 17 #JOSM_MODULEPATH="" 18 19 # Location of the JOSM jar file (default: /usr/share/josm-latest/josm-latest.jar) 20 #JOSM_PATH="/usr/share/josm-latest/josm-latest.jar" 21 -
native/linux/latest/usr/bin/josm-latest
diff --git a/native/linux/latest/usr/bin/josm-latest b/native/linux/latest/usr/bin/josm-latest index 58cce230aa..34553cccc0 100755
a b dpkg_java() { 21 21 if dpkg --get-selections "openjdk-*-jre" | grep install$ > /dev/null \ 22 22 || dpkg --get-selections "openjdk-*-jre:$ARCH" | grep install$ > /dev/null ; then 23 23 # LTS versions in decreased order 24 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-25-openjdk/bin/java /usr/lib/jvm/java-25-openjdk-$ARCH/bin/java" 24 25 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-21-openjdk/bin/java /usr/lib/jvm/java-21-openjdk-$ARCH/bin/java" 25 26 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-17-openjdk/bin/java /usr/lib/jvm/java-17-openjdk-$ARCH/bin/java" 26 27 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-11-openjdk/bin/java /usr/lib/jvm/java-11-openjdk-$ARCH/bin/java" 27 28 # Released versions in decreased order 28 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-2 4-openjdk/bin/java /usr/lib/jvm/java-24-openjdk-$ARCH/bin/java"29 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-27-openjdk/bin/java /usr/lib/jvm/java-27-openjdk-$ARCH/bin/java" 29 30 # EOL versions in decreased order 31 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-26-openjdk/bin/java /usr/lib/jvm/java-26-openjdk-$ARCH/bin/java" 32 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-24-openjdk/bin/java /usr/lib/jvm/java-24-openjdk-$ARCH/bin/java" 30 33 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-23-openjdk/bin/java /usr/lib/jvm/java-23-openjdk-$ARCH/bin/java" 31 34 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-22-openjdk/bin/java /usr/lib/jvm/java-22-openjdk-$ARCH/bin/java" 32 35 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-20-openjdk/bin/java /usr/lib/jvm/java-20-openjdk-$ARCH/bin/java" … … dpkg_java() { 38 41 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-13-openjdk/bin/java /usr/lib/jvm/java-13-openjdk-$ARCH/bin/java" 39 42 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-12-openjdk/bin/java /usr/lib/jvm/java-12-openjdk-$ARCH/bin/java" 40 43 # Development version(s) 41 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-2 5-openjdk/bin/java /usr/lib/jvm/java-25-openjdk-$ARCH/bin/java"44 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-28-openjdk/bin/java /usr/lib/jvm/java-28-openjdk-$ARCH/bin/java" 42 45 fi 43 46 } 44 47 -
native/linux/latest/usr/share/doc/josm-latest/copyright
diff --git a/native/linux/latest/usr/share/doc/josm-latest/copyright b/native/linux/latest/usr/share/doc/josm-latest/copyright index 59ca9024ea..384c4eb34c 100644
a b 1 Copyright (c) 2005-202 0JOSM developers <josm-dev@openstreetmap.org>1 Copyright (c) 2005-2026 JOSM developers <josm-dev@openstreetmap.org> 2 2 3 3 License: GPL3+ 4 4 -
native/linux/latest/usr/share/man/man1/josm-latest.1
diff --git a/native/linux/latest/usr/share/man/man1/josm-latest.1 b/native/linux/latest/usr/share/man/man1/josm-latest.1 index f8546e32e1..1b8f9cc173 100644
a b 1 .TH JOSM 1 " March 22, 2021"1 .TH JOSM 1 "October 23, 2026" 2 2 .\" Please adjust this date whenever revising the manpage. 3 .\" Keep in sync with MainApplication.getHelp(), RenderingCLI, ProjectionCLI and ValidatorCLI. 3 4 .SH NAME 4 5 josm \- Java OpenStreetMap Editor 5 6 .SH SYNOPSIS 6 7 .B josm-latest 8 [\fIcommand\fR] [\fIoptions\fR] [\fIfile\fR|\fIURL\fR|\fIbbox\fR...] 7 9 .SH DESCRIPTION 8 .B JOSM 9 is an editor for OpenStreetMap written in Java 8.10 .B JOSM 11 is an editor for OpenStreetMap written in Java. 10 12 .PP 11 .B OpenStreetMap 13 .B OpenStreetMap 12 14 is a project aimed squarely at creating and providing free geographic data such as street maps to anyone 13 who wants them. It allows you to view, edit and use geographical data in a collaborative way from 15 who wants them. It allows you to view, edit and use geographical data in a collaborative way from 14 16 anywhere on earth. 15 The project was started because most maps you think of as free actually have legal or technical 17 The project was started because most maps you think of as free actually have legal or technical 16 18 restrictions on their use, holding back people from using them in creative, productive or unexpected 17 19 ways. 20 .SH COMMANDS 21 .TP 22 .B runjosm 23 Launch JOSM (default, performed when no command is specified) 24 .TP 25 .B render 26 Render data and save the result to an image file 27 .TP 28 .B project 29 Convert coordinates from one coordinate reference system to another 30 .TP 31 .B validate 32 Validate data 33 .PP 34 Run a command with \fB\-\-help\fR for details on its options. 18 35 .SH OPTIONS 36 The following options apply to the \fBrunjosm\fR command. 19 37 .TP 20 .B \-h, \- ?, \-\-help38 .B \-h, \-\-help 21 39 Show help 22 40 .TP 23 .B \-\-geometry=<width>x<height>(+| -)x(+|-)y41 .B \-\-geometry=<width>x<height>(+|\-)x(+|\-)y 24 42 Standard X geometry argument 25 43 .TP 26 44 .B [\-\-download=]minlat,minlon,maxlat,maxlon 27 45 Download the bounding box 28 46 .TP 29 .B [\-\-download=]< url>30 Download the location at the url(with lat=x&lon=y&zoom=z)47 .B [\-\-download=]<URL> 48 Download the location at the URL (with lat=x&lon=y&zoom=z) 31 49 .TP 32 50 .B [\-\-download=]<filename> 33 Open file (any file type that can be opened with File/Open)51 Open a file (any file type that can be opened with File/Open) 34 52 .TP 35 53 .B \-\-downloadgps=minlat,minlon,maxlat,maxlon 36 Download the bounding box as raw gps 54 Download the bounding box as raw GPS 55 .TP 56 .B \-\-downloadgps=<URL> 57 Download the location at the URL (with lat=x&lon=y&zoom=z) as raw GPS 37 58 .TP 38 59 .B \-\-selection=<searchstring> 39 Select with the given search 60 Select with the given search. Make sure you load some data if you use \-\-selection. 40 61 .TP 41 62 .B \-\-[no\-]maximize 42 63 Do [not] launch in maximized mode 43 64 .TP 44 65 .B \-\-reset\-preferences 45 Reset the preferences to thedefault66 Reset the preferences to default 46 67 .TP 47 68 .B \-\-load\-preferences=<url\-to\-xml> 48 69 Change preferences according to the XML file … … Set preference key to value 53 74 .B \-\-language=<language> 54 75 Set the language 55 76 .TP 56 .B \- \-version57 Display the JOSM version 77 .B \-v, \-\-version 78 Display the JOSM version and exit 58 79 .TP 59 .B \-\-status -report80 .B \-\-status\-report 60 81 Show status report with useful information that can be attached to bugs 61 82 .TP 83 .B \-\-warn 84 Print only warning or error messages to console 85 .TP 62 86 .B \-\-debug 63 87 Print debugging messages to console 64 88 .TP 89 .B \-\-skip\-plugins 90 Skip loading plugins 91 .TP 65 92 .B \-\-offline=<OSM_API|JOSM_WEBSITE|CACHE_UPDATES|CERTIFICATES|ALL> 66 93 Disable access to the given resource(s), separated by comma 94 .PP 95 Parameters \-\-download, \-\-downloadgps and \-\-selection are processed in this order. 96 .SS render 97 .B josm\-latest render 98 \fIoptions\fR 99 .PP 100 Renders data and saves the result to an image file. 101 .TP 102 .B \-h, \-\-help 103 Show help 104 .TP 105 .B \-i, \-\-input <file> 106 Input data file name (.osm) 107 .TP 108 .B \-o, \-\-output <file> 109 Output image file name (.png); defaults to out.png 110 .TP 111 .B \-s, \-\-style <file> 112 Style file to use for rendering (.mapcss or .zip). 113 This option can be repeated to load multiple styles. 114 .TP 115 .B \-\-setting <key>:<value> 116 Style setting (in JOSM accessible in the style list dialog right click menu). 117 Applies to the last style loaded with the \-\-style option. 118 .TP 119 .B \-z, \-\-zoom <lvl> 120 Select zoom level to render (integer value, 0=entire earth, 18=street level) 121 .TP 122 .B \-\-scale <scale> 123 Select the map scale. A value of 10000 denotes a scale of 1:10000 124 (1 cm on the map equals 100 m on the ground; display resolution: 96 dpi). 125 Options \-\-zoom and \-\-scale are mutually exclusive. 126 .TP 127 .B \-b, \-\-bounds auto|<min_lon>,<min_lat>,<max_lon>,<max_lat> 128 Area to render, default value is auto. 129 With keyword auto, the downloaded area in the .osm input file will be used (if recorded). 130 .TP 131 .B \-\-anchor <lon>,<lat> 132 Specify bottom left corner of the rendering area. 133 Used in combination with width and height options to determine the area to render. 134 .TP 135 .B \-\-width\-m <number> 136 Width of the rendered area, in meter 137 .TP 138 .B \-\-height\-m <number> 139 Height of the rendered area, in meter 140 .TP 141 .B \-\-width\-px <number> 142 Width of the target image, in pixel 143 .TP 144 .B \-\-height\-px <number> 145 Height of the target image, in pixel 146 .TP 147 .B \-\-projection <code> 148 Projection to use, default value epsg:3857 (web\-Mercator) 149 .TP 150 .B \-\-max\-image\-size <number> 151 Maximum image width/height in pixel (0 means no limit), default value: 20000 152 .TP 153 .B \-\-debug, \-\-trace 154 Print (detailed) debugging messages to console 155 .PP 156 To specify the rendered area and scale, the options can be combined in various ways: 157 .nf 158 \-\-bounds (\-\-zoom|\-\-scale|\-\-width\-px|\-\-height\-px) 159 \-\-anchor (\-\-width\-m|\-\-width\-px) (\-\-height\-m|\-\-height\-px) (\-\-zoom|\-\-scale) 160 \-\-anchor \-\-width\-m \-\-height\-m (\-\-width\-px|\-\-height\-px) 161 \-\-anchor \-\-width\-px \-\-height\-px (\-\-width\-m|\-\-height\-m) 162 .fi 163 If neither bounds nor anchor is given, the default value \-\-bounds=auto takes effect 164 and the bounds of the download area in the .osm input file are used. 165 .SS project 166 .B josm\-latest project 167 \fIoptions\fR \fIcrs\fR +to \fIcrs\fR [\fIfile\fR...] 168 .PP 169 Converts coordinates from one coordinate reference system to another. 170 The format for input and output coordinate reference system is similar to that of the PROJ.4 software. 171 Input data is read from the files given as positional arguments; when no files are given, 172 or the filename is "\-", data is read from standard input. 173 .TP 174 .B \-h, \-\-help 175 Show help 176 .TP 177 .B \-I, \-\-inverse 178 Switch input and output crs 179 .TP 180 .B \-r, \-\-switch\-input 181 Switch order of input coordinates (east/north, lon/lat) 182 .TP 183 .B \-s, \-\-switch\-output 184 Switch order of output coordinates (east/north, lon/lat) 185 .SS validate 186 .B josm\-latest validate 187 \fIoptions\fR 188 .PP 189 Validates data and saves the result to a file. 190 .TP 191 .B \-h, \-\-help 192 Show help 193 .TP 194 .B \-i, \-\-input <file> 195 Input data file name (.osm, .validator.mapcss, .mapcss). 196 OSM files can be specified multiple times. Required. 197 \&.validator.mapcss and .mapcss files will stop processing on first error. 198 Non\-osm files do not use \-\-output or \-\-change\-file. 199 .TP 200 .B \-o, \-\-output <file> 201 Output data file name (.geojson, line\-by\-line delimited for MapRoulette). Optional. 202 .TP 203 .B \-c, \-\-change\-file <file> 204 Change file name (.osc). Can be specified multiple times per input. 205 Changes will be applied in the specified order. Optional. 206 .TP 207 .B \-l, \-\-language <language> 208 Set the language 209 .TP 210 .B \-p, \-\-load\-preferences <file> 211 Change preferences according to the XML file 212 .TP 213 .B \-s, \-\-set <key>=<value> 214 Set preference key to value 215 .TP 216 .B \-\-warn, \-\-debug, \-\-trace 217 Set the logging level 67 218 .SH FILES 68 219 JOSM files are saved according to the XDG Base Directory Specification: 69 220 .TP … … User data 77 228 Cache 78 229 .TP 79 230 If the directory $HOME/.josm-latest exists, all files are stored there. 231 .TP 232 .B /etc/default/josm-latest 233 Shell file sourced by the launcher script, e.g. to set JAVA_OPTS or JAVACMD. 80 234 .SH JAVA PROPERTIES 81 235 The following options can be set by using Java system properties (i.e. \-Dkey=value 82 236 passed to java, or specified inside JAVA_OPTS). … … Set the JOSM cache directory. 92 246 .TP 93 247 .B josm.home=<homedir> 94 248 Relocate all 3 directories to homedir. Cache directory will be in <homedir>/cache. 249 josm.home has lower precedence, i.e. the specific settings above override it. 95 250 .TP 96 251 .B josm.dir.name=<JOSM-latest> 97 252 Change the JOSM directory name. 98 253 .SH ENVIRONMENT 99 254 .IP JAVA_HOME 100 255 Specify an alternate Java environment. 256 .IP JAVACMD 257 Specify the java executable to use, overriding the automatic selection. 101 258 .IP JAVA_OPTS 102 259 Specify Java options. 103 260 For example, to use a HTTP proxy server with this program, set this environment variable 104 261 to something like 105 .I JAVA_OPTS=" -Dhttp.proxyHost=yourProxyURL"262 .I JAVA_OPTS="\-Dhttp.proxyHost=yourProxyURL" 106 263 before starting josm. 264 If unset and the machine has more than 8 GB of memory, the launcher uses 265 .IR "\-XX:MaxRAMPercentage=75.0 \-Xms256m" . 266 .IP JAVAFX_HOME 267 Location of the OpenJFX modules (default /usr/share/openjfx/lib). 268 .IP JOSM_MODULEPATH 269 Additional Java module path entries. 270 .IP JOSM_PATH 271 Location of the JOSM jar file (default /usr/share/josm-latest/josm-latest.jar). 272 .SH EXAMPLES 273 .nf 274 josm\-latest track1.gpx track2.gpx london.osm 275 josm\-latest https://www.openstreetmap.org/#map=13/43.2/11.1 276 josm\-latest london.osm \-\-selection=http://www.ostertag.name/osm/OSM_errors_node\-duplicate.xml 277 josm\-latest 43.2,11.1,43.4,11.4 278 josm\-latest render \-i data.osm \-s style.mapcss \-z 16 \-o image.png 279 josm\-latest project +init=epsg:4326 +to +init=epsg:3857 <<<"11.232274 50.5685716" 280 josm\-latest validate \-i data.osm \-o errors.geojson 281 JAVA_OPTS="\-Xmx1024m" josm\-latest 282 .fi 107 283 .SH AUTHOR 108 284 JOSM was originally designed and coded by Immanuel Scholz, 109 285 and is now maintained by the OpenStreetMap community. … … Ulf Lamping 126 302 Simon Legner 127 303 Raphael Mack 128 304 Upliner Mikhalych 305 Gerd Petermann 129 306 Vincent Privat 130 307 Frederik Ramm 308 Taylor Smock 131 309 Dirk Stöcker 310 Stefan Volke 311 Michael Zangl 132 312 .PP 133 313 Many minor contributions and patches by others; see SVN history 134 314 at https://josm.openstreetmap.de/svn/ for details. Use -
native/linux/tested/DEBIAN/control
diff --git a/native/linux/tested/DEBIAN/control b/native/linux/tested/DEBIAN/control index 02961f8929..86e999034a 100644
a b Depends: default-jre (>= 2:1.17) | java11-runtime, 10 10 Conflicts: josm-plugins 11 11 Replaces: josm-plugins 12 12 Description: Editor for OpenStreetMap 13 JOSM is an e ditor for OpenStreetMap (OSM) written in Java.14 The current version supports stand alone GPX tracks, GPX track data15 from OSM database and existing nodes, line segments and metadata tags16 from the OSM database.13 JOSM is an extensible editor for OpenStreetMap (OSM) written in Java. 14 It supports loading GPX tracks, background imagery and OSM data from 15 local sources as well as from online sources and allows to edit the 16 OSM data (nodes, ways and relations) and their metadata tags. 17 17 . 18 OpenStreetMap is a project aimed squarely at creating and providing19 free geographic data such as street maps to anyone who wants them.20 The project was started because most maps you think of as free actually21 have legal or technical restrictions on their use, holding back people22 from using them in creative, productive or unexpected ways.18 OpenStreetMap is a project aimed squarely at creating and providing 19 free geographic data such as street maps to anyone who wants them. 20 The project was started because most maps you think of as free actually 21 have legal or technical restrictions on their use, holding back people 22 from using them in creative, productive or unexpected ways. 23 23 24 24 25 25 -
native/linux/tested/etc/default/josm
diff --git a/native/linux/tested/etc/default/josm b/native/linux/tested/etc/default/josm index 508ac3137f..fd49b64076 100644
a b 7 7 # Enable OpenGL pipeline (2D graphic accelerators) 8 8 #JAVA_OPTS="-Dsun.java2d.opengl=True ${JAVA_OPTS}" 9 9 10 # Use a specific Java executable instead of the automatic selection 11 #JAVACMD="/usr/lib/jvm/java-21-openjdk-amd64/bin/java" 12 13 # Location of the OpenJFX modules (default: /usr/share/openjfx/lib) 14 #JAVAFX_HOME="/usr/share/openjfx/lib" 15 16 # Additional Java module path entries 17 #JOSM_MODULEPATH="" 18 19 # Location of the JOSM jar file (default: /usr/share/josm/josm.jar) 20 #JOSM_PATH="/usr/share/josm/josm.jar" 21 -
native/linux/tested/usr/bin/josm
diff --git a/native/linux/tested/usr/bin/josm b/native/linux/tested/usr/bin/josm index b84a517f8e..b91f2fcaa6 100755
a b dpkg_java() { 21 21 if dpkg --get-selections "openjdk-*-jre" | grep install$ > /dev/null \ 22 22 || dpkg --get-selections "openjdk-*-jre:$ARCH" | grep install$ > /dev/null ; then 23 23 # LTS versions in decreased order 24 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-25-openjdk/bin/java /usr/lib/jvm/java-25-openjdk-$ARCH/bin/java" 24 25 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-21-openjdk/bin/java /usr/lib/jvm/java-21-openjdk-$ARCH/bin/java" 25 26 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-17-openjdk/bin/java /usr/lib/jvm/java-17-openjdk-$ARCH/bin/java" 26 27 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-11-openjdk/bin/java /usr/lib/jvm/java-11-openjdk-$ARCH/bin/java" 27 28 # Released versions in decreased order 28 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-2 4-openjdk/bin/java /usr/lib/jvm/java-24-openjdk-$ARCH/bin/java"29 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-27-openjdk/bin/java /usr/lib/jvm/java-27-openjdk-$ARCH/bin/java" 29 30 # EOL versions in decreased order 31 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-26-openjdk/bin/java /usr/lib/jvm/java-26-openjdk-$ARCH/bin/java" 32 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-24-openjdk/bin/java /usr/lib/jvm/java-24-openjdk-$ARCH/bin/java" 30 33 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-23-openjdk/bin/java /usr/lib/jvm/java-23-openjdk-$ARCH/bin/java" 31 34 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-22-openjdk/bin/java /usr/lib/jvm/java-22-openjdk-$ARCH/bin/java" 32 35 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-20-openjdk/bin/java /usr/lib/jvm/java-20-openjdk-$ARCH/bin/java" … … dpkg_java() { 38 41 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-13-openjdk/bin/java /usr/lib/jvm/java-13-openjdk-$ARCH/bin/java" 39 42 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-12-openjdk/bin/java /usr/lib/jvm/java-12-openjdk-$ARCH/bin/java" 40 43 # Development version(s) 41 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-2 5-openjdk/bin/java /usr/lib/jvm/java-25-openjdk-$ARCH/bin/java"44 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-28-openjdk/bin/java /usr/lib/jvm/java-28-openjdk-$ARCH/bin/java" 42 45 fi 43 46 } 44 47 -
native/linux/tested/usr/share/doc/josm/copyright
diff --git a/native/linux/tested/usr/share/doc/josm/copyright b/native/linux/tested/usr/share/doc/josm/copyright index 59ca9024ea..384c4eb34c 100644
a b 1 Copyright (c) 2005-202 0JOSM developers <josm-dev@openstreetmap.org>1 Copyright (c) 2005-2026 JOSM developers <josm-dev@openstreetmap.org> 2 2 3 3 License: GPL3+ 4 4 -
native/linux/tested/usr/share/man/man1/josm.1
diff --git a/native/linux/tested/usr/share/man/man1/josm.1 b/native/linux/tested/usr/share/man/man1/josm.1 index c8467c3a73..5c66a59cf5 100644
a b 1 .TH JOSM 1 " March 22, 2021"1 .TH JOSM 1 "October 23, 2026" 2 2 .\" Please adjust this date whenever revising the manpage. 3 .\" Keep in sync with MainApplication.getHelp(), RenderingCLI, ProjectionCLI and ValidatorCLI. 3 4 .SH NAME 4 5 josm \- Java OpenStreetMap Editor 5 6 .SH SYNOPSIS 6 7 .B josm 8 [\fIcommand\fR] [\fIoptions\fR] [\fIfile\fR|\fIURL\fR|\fIbbox\fR...] 7 9 .SH DESCRIPTION 8 .B JOSM 9 is an editor for OpenStreetMap written in Java 8.10 .B JOSM 11 is an editor for OpenStreetMap written in Java. 10 12 .PP 11 .B OpenStreetMap 13 .B OpenStreetMap 12 14 is a project aimed squarely at creating and providing free geographic data such as street maps to anyone 13 who wants them. It allows you to view, edit and use geographical data in a collaborative way from 15 who wants them. It allows you to view, edit and use geographical data in a collaborative way from 14 16 anywhere on earth. 15 The project was started because most maps you think of as free actually have legal or technical 17 The project was started because most maps you think of as free actually have legal or technical 16 18 restrictions on their use, holding back people from using them in creative, productive or unexpected 17 19 ways. 20 .SH COMMANDS 21 .TP 22 .B runjosm 23 Launch JOSM (default, performed when no command is specified) 24 .TP 25 .B render 26 Render data and save the result to an image file 27 .TP 28 .B project 29 Convert coordinates from one coordinate reference system to another 30 .TP 31 .B validate 32 Validate data 33 .PP 34 Run a command with \fB\-\-help\fR for details on its options. 18 35 .SH OPTIONS 36 The following options apply to the \fBrunjosm\fR command. 19 37 .TP 20 .B \-h, \- ?, \-\-help38 .B \-h, \-\-help 21 39 Show help 22 40 .TP 23 .B \-\-geometry=<width>x<height>(+| -)x(+|-)y41 .B \-\-geometry=<width>x<height>(+|\-)x(+|\-)y 24 42 Standard X geometry argument 25 43 .TP 26 44 .B [\-\-download=]minlat,minlon,maxlat,maxlon 27 45 Download the bounding box 28 46 .TP 29 .B [\-\-download=]< url>30 Download the location at the url(with lat=x&lon=y&zoom=z)47 .B [\-\-download=]<URL> 48 Download the location at the URL (with lat=x&lon=y&zoom=z) 31 49 .TP 32 50 .B [\-\-download=]<filename> 33 Open file (any file type that can be opened with File/Open)51 Open a file (any file type that can be opened with File/Open) 34 52 .TP 35 53 .B \-\-downloadgps=minlat,minlon,maxlat,maxlon 36 Download the bounding box as raw gps 54 Download the bounding box as raw GPS 55 .TP 56 .B \-\-downloadgps=<URL> 57 Download the location at the URL (with lat=x&lon=y&zoom=z) as raw GPS 37 58 .TP 38 59 .B \-\-selection=<searchstring> 39 Select with the given search 60 Select with the given search. Make sure you load some data if you use \-\-selection. 40 61 .TP 41 62 .B \-\-[no\-]maximize 42 63 Do [not] launch in maximized mode 43 64 .TP 44 65 .B \-\-reset\-preferences 45 Reset the preferences to thedefault66 Reset the preferences to default 46 67 .TP 47 68 .B \-\-load\-preferences=<url\-to\-xml> 48 69 Change preferences according to the XML file … … Set preference key to value 53 74 .B \-\-language=<language> 54 75 Set the language 55 76 .TP 56 .B \- \-version57 Display the JOSM version 77 .B \-v, \-\-version 78 Display the JOSM version and exit 58 79 .TP 59 .B \-\-status -report80 .B \-\-status\-report 60 81 Show status report with useful information that can be attached to bugs 61 82 .TP 83 .B \-\-warn 84 Print only warning or error messages to console 85 .TP 62 86 .B \-\-debug 63 87 Print debugging messages to console 64 88 .TP 89 .B \-\-skip\-plugins 90 Skip loading plugins 91 .TP 65 92 .B \-\-offline=<OSM_API|JOSM_WEBSITE|CACHE_UPDATES|CERTIFICATES|ALL> 66 93 Disable access to the given resource(s), separated by comma 94 .PP 95 Parameters \-\-download, \-\-downloadgps and \-\-selection are processed in this order. 96 .SS render 97 .B josm render 98 \fIoptions\fR 99 .PP 100 Renders data and saves the result to an image file. 101 .TP 102 .B \-h, \-\-help 103 Show help 104 .TP 105 .B \-i, \-\-input <file> 106 Input data file name (.osm) 107 .TP 108 .B \-o, \-\-output <file> 109 Output image file name (.png); defaults to out.png 110 .TP 111 .B \-s, \-\-style <file> 112 Style file to use for rendering (.mapcss or .zip). 113 This option can be repeated to load multiple styles. 114 .TP 115 .B \-\-setting <key>:<value> 116 Style setting (in JOSM accessible in the style list dialog right click menu). 117 Applies to the last style loaded with the \-\-style option. 118 .TP 119 .B \-z, \-\-zoom <lvl> 120 Select zoom level to render (integer value, 0=entire earth, 18=street level) 121 .TP 122 .B \-\-scale <scale> 123 Select the map scale. A value of 10000 denotes a scale of 1:10000 124 (1 cm on the map equals 100 m on the ground; display resolution: 96 dpi). 125 Options \-\-zoom and \-\-scale are mutually exclusive. 126 .TP 127 .B \-b, \-\-bounds auto|<min_lon>,<min_lat>,<max_lon>,<max_lat> 128 Area to render, default value is auto. 129 With keyword auto, the downloaded area in the .osm input file will be used (if recorded). 130 .TP 131 .B \-\-anchor <lon>,<lat> 132 Specify bottom left corner of the rendering area. 133 Used in combination with width and height options to determine the area to render. 134 .TP 135 .B \-\-width\-m <number> 136 Width of the rendered area, in meter 137 .TP 138 .B \-\-height\-m <number> 139 Height of the rendered area, in meter 140 .TP 141 .B \-\-width\-px <number> 142 Width of the target image, in pixel 143 .TP 144 .B \-\-height\-px <number> 145 Height of the target image, in pixel 146 .TP 147 .B \-\-projection <code> 148 Projection to use, default value epsg:3857 (web\-Mercator) 149 .TP 150 .B \-\-max\-image\-size <number> 151 Maximum image width/height in pixel (0 means no limit), default value: 20000 152 .TP 153 .B \-\-debug, \-\-trace 154 Print (detailed) debugging messages to console 155 .PP 156 To specify the rendered area and scale, the options can be combined in various ways: 157 .nf 158 \-\-bounds (\-\-zoom|\-\-scale|\-\-width\-px|\-\-height\-px) 159 \-\-anchor (\-\-width\-m|\-\-width\-px) (\-\-height\-m|\-\-height\-px) (\-\-zoom|\-\-scale) 160 \-\-anchor \-\-width\-m \-\-height\-m (\-\-width\-px|\-\-height\-px) 161 \-\-anchor \-\-width\-px \-\-height\-px (\-\-width\-m|\-\-height\-m) 162 .fi 163 If neither bounds nor anchor is given, the default value \-\-bounds=auto takes effect 164 and the bounds of the download area in the .osm input file are used. 165 .SS project 166 .B josm project 167 \fIoptions\fR \fIcrs\fR +to \fIcrs\fR [\fIfile\fR...] 168 .PP 169 Converts coordinates from one coordinate reference system to another. 170 The format for input and output coordinate reference system is similar to that of the PROJ.4 software. 171 Input data is read from the files given as positional arguments; when no files are given, 172 or the filename is "\-", data is read from standard input. 173 .TP 174 .B \-h, \-\-help 175 Show help 176 .TP 177 .B \-I, \-\-inverse 178 Switch input and output crs 179 .TP 180 .B \-r, \-\-switch\-input 181 Switch order of input coordinates (east/north, lon/lat) 182 .TP 183 .B \-s, \-\-switch\-output 184 Switch order of output coordinates (east/north, lon/lat) 185 .SS validate 186 .B josm validate 187 \fIoptions\fR 188 .PP 189 Validates data and saves the result to a file. 190 .TP 191 .B \-h, \-\-help 192 Show help 193 .TP 194 .B \-i, \-\-input <file> 195 Input data file name (.osm, .validator.mapcss, .mapcss). 196 OSM files can be specified multiple times. Required. 197 \&.validator.mapcss and .mapcss files will stop processing on first error. 198 Non\-osm files do not use \-\-output or \-\-change\-file. 199 .TP 200 .B \-o, \-\-output <file> 201 Output data file name (.geojson, line\-by\-line delimited for MapRoulette). Optional. 202 .TP 203 .B \-c, \-\-change\-file <file> 204 Change file name (.osc). Can be specified multiple times per input. 205 Changes will be applied in the specified order. Optional. 206 .TP 207 .B \-l, \-\-language <language> 208 Set the language 209 .TP 210 .B \-p, \-\-load\-preferences <file> 211 Change preferences according to the XML file 212 .TP 213 .B \-s, \-\-set <key>=<value> 214 Set preference key to value 215 .TP 216 .B \-\-warn, \-\-debug, \-\-trace 217 Set the logging level 67 218 .SH FILES 68 219 JOSM files are saved according to the XDG Base Directory Specification: 69 220 .TP … … User data 77 228 Cache 78 229 .TP 79 230 If the directory $HOME/.josm exists, all files are stored there. 231 .TP 232 .B /etc/default/josm 233 Shell file sourced by the launcher script, e.g. to set JAVA_OPTS or JAVACMD. 80 234 .SH JAVA PROPERTIES 81 235 The following options can be set by using Java system properties (i.e. \-Dkey=value 82 236 passed to java, or specified inside JAVA_OPTS). … … Set the JOSM cache directory. 92 246 .TP 93 247 .B josm.home=<homedir> 94 248 Relocate all 3 directories to homedir. Cache directory will be in <homedir>/cache. 249 josm.home has lower precedence, i.e. the specific settings above override it. 95 250 .TP 96 251 .B josm.dir.name=<JOSM> 97 252 Change the JOSM directory name. 98 253 .SH ENVIRONMENT 99 254 .IP JAVA_HOME 100 255 Specify an alternate Java environment. 256 .IP JAVACMD 257 Specify the java executable to use, overriding the automatic selection. 101 258 .IP JAVA_OPTS 102 259 Specify Java options. 103 260 For example, to use a HTTP proxy server with this program, set this environment variable 104 261 to something like 105 .I JAVA_OPTS=" -Dhttp.proxyHost=yourProxyURL"262 .I JAVA_OPTS="\-Dhttp.proxyHost=yourProxyURL" 106 263 before starting josm. 264 If unset and the machine has more than 8 GB of memory, the launcher uses 265 .IR "\-XX:MaxRAMPercentage=75.0 \-Xms256m" . 266 .IP JAVAFX_HOME 267 Location of the OpenJFX modules (default /usr/share/openjfx/lib). 268 .IP JOSM_MODULEPATH 269 Additional Java module path entries. 270 .IP JOSM_PATH 271 Location of the JOSM jar file (default /usr/share/josm/josm.jar). 272 .SH EXAMPLES 273 .nf 274 josm track1.gpx track2.gpx london.osm 275 josm https://www.openstreetmap.org/#map=13/43.2/11.1 276 josm london.osm \-\-selection=http://www.ostertag.name/osm/OSM_errors_node\-duplicate.xml 277 josm 43.2,11.1,43.4,11.4 278 josm render \-i data.osm \-s style.mapcss \-z 16 \-o image.png 279 josm project +init=epsg:4326 +to +init=epsg:3857 <<<"11.232274 50.5685716" 280 josm validate \-i data.osm \-o errors.geojson 281 JAVA_OPTS="\-Xmx1024m" josm 282 .fi 107 283 .SH AUTHOR 108 284 JOSM was originally designed and coded by Immanuel Scholz, 109 285 and is now maintained by the OpenStreetMap community. … … Ulf Lamping 126 302 Simon Legner 127 303 Raphael Mack 128 304 Upliner Mikhalych 305 Gerd Petermann 129 306 Vincent Privat 130 307 Frederik Ramm 308 Taylor Smock 131 309 Dirk Stöcker 310 Stefan Volke 311 Michael Zangl 132 312 .PP 133 313 Many minor contributions and patches by others; see SVN history 134 314 at https://josm.openstreetmap.de/svn/ for details. Use -
src/org/openstreetmap/josm/gui/MainApplication.java
diff --git a/src/org/openstreetmap/josm/gui/MainApplication.java b/src/org/openstreetmap/josm/gui/MainApplication.java index 9cdc48cc57..c6f538dabb 100644
a b public class MainApplication { 687 687 "\trender "+tr("render data and save the result to an image file")+'\n'+ 688 688 "\tproject " + tr("convert coordinates from one coordinate reference system to another")+ '\n' + 689 689 "\tvalidate " + tr("validate data") + "\n\n" + 690 tr("For details on the {0} and {1} commands, run them with the {2} option.", "render", "project", "--help")+'\n'+ 690 tr("For details on the {0}, {1} and {2} commands, run them with the {3} option.", 691 "render", "project", "validate", "--help")+'\n'+ 691 692 tr("The remainder of this help page documents the {0} command.", "runjosm")+"\n\n"+ 692 693 tr("options")+":\n"+ 693 694 "\t--help|-h "+tr("Show this help")+'\n'+
