source: josm/trunk/README@ 15988

Last change on this file since 15988 was 15978, checked in by simon04, 5 years ago

fix #18140 - Switch to OpeningHoursParser

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/plain;charset=utf-8
File size: 12.1 KB
Line 
1Supplemental information for JOSM -- the Java OpenStreetMap Editor
2
3=============================================================================
4 I. Install & Launch
5=============================================================================
6
7Installation notes
8------------------
9To run JOSM, you need:
10
11* The JOSM .jar file, e.g., josm-tested.jar or josm-latest.jar
12* Java Runtime Environment (JRE) 8, or later.
13
14
15How to get Java Runtime Environment
16-----------------------------------
17You need JRE Version 8, or later.
18
19Microsoft Windows and Apple Mac OS X users should visit https://www.java.com
20and download the latest Java executable for their system.
21
22Linux users should visit http://www.oracle.com/technetwork/java/index.html
23There is a Linux binary installer, which you must execute from a console, or
24use the mechanism of your distribution's packaging system.
25
26
27How to launch
28-------------
29Microsoft Windows users launch by double-clicking on the .jar file.
30If this does not work, open a command shell and type
31"java -jar josm-latest.jar" in the directory that holds the file. (Please
32replace josm-latest.jar with the name of your .jar file, if you aren't using
33the latest version.)
34
35Under Linux, open a shell, go to the file directory and type
36"java -jar josm-latest.jar" to launch. If this does not work, try to set
37your JAVA_HOME variable to the java executable location (the root location,
38not the bin).
39
40macOS users just click on the .jar file icon.
41
42=============================================================================
43 II. Development
44=============================================================================
45
46How to get the source code
47--------------------------
48Download it directly from the subversion at
49https://josm.openstreetmap.de/svn/trunk. To use the command line subversion
50client, type
51
52svn co https://josm.openstreetmap.de/svn/trunk josm
53
54
55Files & directories
56-------------------
57This is an overview of the files and directories in the JOSM code repository:
58- build.xml ant build file (standard way to create a JOSM binary)
59- CONTRIBUTION list of major code contributors
60- data/ data files that will be included in the JOSM jar file
61 - fonts/ font files used for map rendering
62 - gpx/ different color gradients for gpx drawing
63 - projection/ projection files
64 - custom-epsg list of projection definitions, auto-generated file created by ant task 'epsg'
65 - security/*.pem certificates that we like to accept for TLS connections, but are missing in the
66 default Java certificate store
67 - validator/ data files used by the JOSM validator
68 - *.cfg files designed for the old tagchecker, still in use
69 - *.mapcss default validation rules for the MapCSS-based tagchecker
70 - boundaries.osm OSM file containing boundary data for the states of the earth, including
71 data for right and left-hand traffic
72 - defaultpresets.xml data file for the core tagging presets
73 - help-browser.css CSS file for the help sites (HTML content is downloaded from the website
74 on demand, but displayed inside the programm in a Java web browser component.)
75 - overpass-wizard.js Javascript code to provide a wizard-GUI for creating Overpass requests
76 (external library, see https://github.com/tyrasd/overpass-wizard)
77 - *.lang translation data
78 - *.xsd xml schema files for validation of configuration files
79- data_nodist/ data files that are useful for development, but not distributed
80 - exif-direction-example.jpg
81 sample image, that contains direction information in the EXIF header
82 (keys: Exif.GPSInfo.GPSImgDirectionRef, Exif.GPSInfo.GPSImgDirection)
83 - filterTests.osm used for unit testing of the filter feature
84 (see test/unit/org/openstreetmap/josm/data/osm/FilterTest.java)
85 - Join_Areas_Tests.osm some examples to test the 'join areas' feature
86 - *.* various other data files used for unit testing and as reference file
87 - projection/ projection files
88 - *.gsb NTv2 grid files for projection support, downloaded by the
89 client on demand (see CONTRIBUTION)
90 - CHENyx06-Distribution.pdf
91 archive of terms of use for the CHENyx06.gsb file
92 - epsg EPSG data file, taken from the proj.4 project
93 (see https://github.com/OSGeo/proj.4/blob/master/nad/epsg)
94 - esri ESRI data file, taken from the proj.4 project
95 (see https://github.com/OSGeo/proj.4/blob/master/nad/esri)
96 - josm-epsg customizations to the epsg file, used together with the epsg file
97 to generate data/projection/custom-epsg
98
99 - projection-reference-data.csv
100 reference data for projection tests
101 (see test/unit/org/openstreetmap/josm/data/projection/ProjectionRefTest.java)
102 - projection-regression-test-data.csv
103 regression data for projection tests
104 (see test/unit/org/openstreetmap/josm/data/projection/ProjectionRegressionTest.java)
105 - trans/*.lang translation data for files that are not distributed, but used
106 by the server for localization of the services;
107 currently contains plugin descriptions in order to include translations
108 in the downloaded plugin list
109- gpl-2.0.txt, gpl-3.0.txt full text of the GNU General Public License
110- images/ images distributed with the JOSM binary
111 - icons images for the Potlatch 2 style
112 - presets images for the main mappaint style and the internal presets
113- images_nodist/ images, which are not for distribution, but may be useful later (e.g. high
114 resolution and vector versions)
115- josm.jnlp Java Web Start launcher file (used on the website for the tested version)
116- josm-latest.jnlp Java Web Start launcher file (used on the website for the latest version)
117- LICENSE the JOSM license terms
118- linux/ files useful for Linux distributions, including Appdata files, .desktop
119 files, Debian/Ubuntu scripts, man pages, icons, etc.
120- macosx/ files needed to create the MacOS X package
121- netbeans/ preconfigured Netbeans project
122- patches/ patches for external libraries used in JOSM (see below)
123- README this file
124- resources/ resource files that will be included in the JOSM jar file
125- scripts/ various scripts used by JOSM developers
126 - BuildProjectionDefinitions.java
127 called from the ant build file to combine the files epsg and josm-epsg
128 to create the custom-epsg file for distribution
129 - geticons.pl tool to find all used icons and allows deleting unused icons
130 searches also for images with incompatible svg code
131 - optimize-images short script to decrease size of PNG images
132 - since_xxx.py developer tool to replace "@since xxx" in Javadoc by the upcoming revision number
133 - SyncEditorLayerIndex.java
134 script to compare and analyse the differences of the editor layer index and the
135 JOSM imagery list (see https://josm.openstreetmap.de/wiki/ImageryCompare)
136 - TagInfoExtract.java extracts tag information for the taginfo project
137- src/ the source code of the application
138- start.html HTML page to run the applet version of JOSM
139- styles/ map styles included in JOSM
140- sytles_nodist/ files needed for map style maintenance
141 - potlatch2/README infos on how to update the Potlatch 2 style from upstream sources
142- test/ automated software tests
143 - data/ resources used for some tests
144 - functional/ functional tests (source code)
145 - lib/ libraries needed for (some of) the tests, including JUnit
146 - performance/ performance tests (source code)
147 - unit/ unit tests (source code)
148- tools/ libraries and tools that help in the development process
149 - animal-sniffer-ant-tasks.jar
150 used to build and check code signatures to ensure plugins binary compatibility
151 - appbundler-1.0ea.jar used to build Mac OS X package
152 - checkstyle/ libs and config files for checkstyle (automatically detects code style
153 problems in source code); can be launched as an ant target in build.xml
154 - error_prone_ant.jar used to detect code errors during compilation
155 - spotbugs/ libs and config files for spotbugs (automatically detects common bugs and potential
156 problems in source code); can be launched as an ant target in build.xml
157 - jacocoant.jar used to include coverage data into JUnit test reports
158 - japicc/ used to generate a compatibility report between optimized jar and normal one
159 - javacc.jar used in the build process to generate some .java files from a javacc source file
160 (src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSParser.jj)
161 - proguard.jar optimize final binary jar - see build.xml (not used in production so far)
162 - xmltask.jar used to edit XML files from Ant for the OSX package
163- windows/ files needed to create the Windows installer
164
165The 'patches' directory
166-----------------------
167Some libraries that JOSM depends on, are patched for various reasons. The
168files in the patches directory can be used to roll back these customizations.
169This is useful in order to
170 * inspect the changes
171 * update to a newer version of the library but keep the modifications
172
173You can use 'quilt' to manage the patches. E.g. the following command applies all of them:
174
175 $ quilt push -a
176
177Of course, it is also possible to apply the patch files manually one by one.
178
179Third party libraries
180---------------------
181There are some third party libraries which are directly included in the source code tree, in particular:
182
183* jmapviewer: Java component to browse a TMS map
184 src/org/openstreetmap/gui (svn external)
185 -> http://svn.openstreetmap.org/applications/viewer/jmapviewer/
186* Apache commons compress: Support for bzip2 compression when opening files
187 src/org/apache/commons/compress/compressors (svn external)
188 -> https://github.com/apache/commons-compress
189* Apache commons validator: Improved validator routines
190 src/org/openstreetmap/josm/data/validation/routines
191 -> http://commons.apache.org/proper/commons-validator
192* SVG Salamander: Support for SVG image format
193 src/com/kitfox/svg
194 -> https://github.com/blackears/svgSalamander
195* Metadata Extractor: Read EXIF Metadata of photos
196 src/com/drew
197 -> https://github.com/drewnoakes/metadata-extractor
198* Signpost: OAuth library
199 src/oauth, src/com/google
200 -> https://github.com/mttkay/signpost
201* MultiSplitPane: Small lib for GUI layout management
202 src/org/openstreetmap/josm/gui/MultiSplitLayout.java, MultiSplitPane.java
203 -> https://github.com/floscher/multi-split
204 -> https://community.oracle.com/docs/DOC-983539
205* swinghelper: Class CheckThreadViolationRepaintManager to find classpath violations
206 src/org/jdesktop/swinghelper/debug/CheckThreadViolationRepaintManager.java
207 -> https://github.com/floscher/swinghelper
208* xz extractor
209 src/org/tukaani
210 -> https://tukaani.org/xz/java.html
211* OpeningHoursParser (MIT license)
212 -> https://github.com/simonpoole/OpeningHoursParser
Note: See TracBrowser for help on using the repository browser.