[4600] | 1 | Supplemental information for JOSM -- the Java OpenStreetMap Editor
|
---|
[14] | 2 |
|
---|
[5341] | 3 | =============================================================================
|
---|
| 4 | I. Install & Launch
|
---|
| 5 | =============================================================================
|
---|
[5545] | 6 |
|
---|
[4600] | 7 | Installation notes
|
---|
| 8 | ------------------
|
---|
[14] | 9 | To run JOSM, you need:
|
---|
| 10 |
|
---|
[4600] | 11 | * The JOSM .jar file, e.g., josm-tested.jar or josm-latest.jar
|
---|
[10580] | 12 | * Java Runtime Environment (JRE) 8, or later.
|
---|
[14] | 13 |
|
---|
| 14 |
|
---|
[4600] | 15 | How to get Java Runtime Environment
|
---|
| 16 | -----------------------------------
|
---|
[10580] | 17 | You need JRE Version 8, or later.
|
---|
[14] | 18 |
|
---|
[7489] | 19 | Microsoft Windows and Apple Mac OS X users should visit https://www.java.com
|
---|
[6216] | 20 | and download the latest Java executable for their system.
|
---|
[14] | 21 |
|
---|
[4600] | 22 | Linux users should visit http://www.oracle.com/technetwork/java/index.html
|
---|
[5545] | 23 | There is a Linux binary installer, which you must execute from a console, or
|
---|
[4600] | 24 | use the mechanism of your distribution's packaging system.
|
---|
[14] | 25 |
|
---|
| 26 |
|
---|
| 27 | How to launch
|
---|
| 28 | -------------
|
---|
[4600] | 29 | Microsoft Windows users launch by double-clicking on the .jar file.
|
---|
| 30 | If this does not work, open a command shell and type
|
---|
| 31 | "java -jar josm-latest.jar" in the directory that holds the file. (Please
|
---|
| 32 | replace josm-latest.jar with the name of your .jar file, if you aren't using
|
---|
| 33 | the latest version.)
|
---|
[14] | 34 |
|
---|
[4600] | 35 | Under 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
|
---|
[5545] | 37 | your JAVA_HOME variable to the java executable location (the root location,
|
---|
[4600] | 38 | not the bin).
|
---|
[14] | 39 |
|
---|
[5493] | 40 | MacOS X users just click on the .jar file icon.
|
---|
[14] | 41 |
|
---|
[5341] | 42 | =============================================================================
|
---|
| 43 | II. Development
|
---|
| 44 | =============================================================================
|
---|
[14] | 45 |
|
---|
[4600] | 46 | How to get the source code
|
---|
| 47 | --------------------------
|
---|
[5545] | 48 | Download it directly from the subversion at
|
---|
| 49 | https://josm.openstreetmap.de/svn/trunk. To use the command line subversion
|
---|
[4600] | 50 | client, type
|
---|
[14] | 51 |
|
---|
[5341] | 52 | svn co https://josm.openstreetmap.de/svn/trunk josm
|
---|
| 53 |
|
---|
| 54 |
|
---|
| 55 | Files & directories
|
---|
| 56 | -------------------
|
---|
| 57 | This 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
|
---|
[7867] | 61 | - fonts/ font files used for map rendering
|
---|
| 62 | - projection/ projection files
|
---|
| 63 | - *.gsb NTv2 grid files for projection support
|
---|
| 64 | - epsg list of projection definitions
|
---|
[5341] | 65 | - *.lang translation data
|
---|
| 66 | - *.xsd xml schema files for validation of configuration files
|
---|
[5545] | 67 | - help-browser.css CSS file for the help sites (HTML content is downloaded from the website
|
---|
[5341] | 68 | on demand, but displayed inside the programm in a Java web browser component.)
|
---|
[7867] | 69 | - validator/ data files used by the JOSM validator feature
|
---|
| 70 | - *.cfg files designed for the old tagchecker, still used
|
---|
| 71 | - *.mapcss default validation rules for the new mapcss-based tagchecker
|
---|
[5341] | 72 | - data_nodist/ data files that are useful for development, but not distributed
|
---|
[5545] | 73 | - exif-direction-example.jpg
|
---|
[5341] | 74 | sample image, that contains direction information in the EXIF header
|
---|
| 75 | (keys: Exif.GPSInfo.GPSImgDirectionRef, Exif.GPSInfo.GPSImgDirection)
|
---|
| 76 | - filterTests.osm used for unit testing of the filter feature
|
---|
| 77 | (see test/unit/org/openstreetmap/josm/data/osm/FilterTest.java)
|
---|
| 78 | - Join_Areas_Tests.osm some examples to test the 'join areas' feature
|
---|
| 79 | - mapcss/ sample map styles and corresponding data files for regression testing
|
---|
[5545] | 80 | - projection-reference-data.csv
|
---|
[5341] | 81 | reference data for projection tests
|
---|
| 82 | (see test/unit/org/openstreetmap/josm/data/projection/ProjectionRefTest.java)
|
---|
[5545] | 83 | - projection-regression-test-data.csv
|
---|
[5341] | 84 | regression data for projection tests
|
---|
| 85 | (see test/unit/org/openstreetmap/josm/data/projection/ProjectionRegressionTest.java)
|
---|
| 86 | - geticons.pl tool, to find all used icons and allows deleting unused icons
|
---|
| 87 | - gpl-2.0.txt, gpl-3.0.txt full text of the GNU General Public License
|
---|
| 88 | - images/ images distributed with the JOSM binary
|
---|
| 89 | - icons images for the Potlatch 2 style
|
---|
| 90 | - styles/standard images for the main map style (external repository)
|
---|
[5545] | 91 | - images_nodist/ images, which are not for distribution, but may be useful later (e.g. high
|
---|
[5341] | 92 | resolution and vector versions)
|
---|
[7867] | 93 | - josm.jnlp Java Web Start launcher file (used on the website for the tested version)
|
---|
| 94 | - josm-latest.jnlp Java Web Start launcher file (used on the website for the latest version)
|
---|
[5341] | 95 | - LICENSE the JOSM license terms
|
---|
[7867] | 96 | - linux/ files useful for Linux distributions, including Appdata files, .desktop
|
---|
| 97 | files, Debian/Ubuntu scripts, man pages, icons, etc.
|
---|
| 98 | - macosx/ files needed to create the MacOS X package
|
---|
[5341] | 99 | - netbeans/ preconfigured Netbeans project
|
---|
| 100 | - optimize-images short script to decrease size of PNG images
|
---|
| 101 | - patches/ patches for external libraries used in JOSM (see below)
|
---|
| 102 | - README this file
|
---|
[7867] | 103 | - resources/ resource files that will be included in the JOSM jar file
|
---|
| 104 | - scripts/ various scripts used by JOSM developers
|
---|
[5341] | 105 | - src/ the source code of the program
|
---|
| 106 | - start.html HTML page to run the applet version of JOSM
|
---|
| 107 | - styles/ map styles included in JOSM
|
---|
| 108 | - sytles_nodist/ files needed for map style maintenance
|
---|
| 109 | - potlatch2/README infos on how to update the Potlatch 2 style from upstream sources
|
---|
| 110 | - test/ automated software tests
|
---|
[6216] | 111 | - data/ resources used for some tests
|
---|
[5341] | 112 | - functional/ functional tests (source code)
|
---|
[8825] | 113 | - lib/ libraries needed for (some of) the tests, including JUnit
|
---|
[6216] | 114 | - performance/ performance tests (source code)
|
---|
[5341] | 115 | - unit/ unit tests (source code)
|
---|
| 116 | - tools/ libraries and tools that help in the development process
|
---|
[8156] | 117 | - animal-sniffer-ant-tasks-1.14.jar
|
---|
[7934] | 118 | used to build and check code signatures to ensure plugins binary compatibility
|
---|
[10580] | 119 | - appbundler-1.0ea.jar used to build Mac OS X package
|
---|
[8508] | 120 | - checkstyle/ libs and config files for checkstyle (automatically detects code style
|
---|
| 121 | problems in source code); can be launched as an ant target in build.xml
|
---|
[8691] | 122 | - commons-cli-1.3.1.jar dependency of Groovy Ant task
|
---|
[10614] | 123 | - error_prone_ant-2.0.11.jar
|
---|
[10581] | 124 | used to detect code errors during compilation
|
---|
[5341] | 125 | - findbugs/ libs and config files for findbugs (automatically detects common bugs and potential
|
---|
| 126 | problems in source code); can be launched as an ant target in build.xml
|
---|
[10456] | 127 | - groovy-all-2.4.7.jar used for some unit tests and various scripts
|
---|
[10845] | 128 | - jacocoant.jar used to include coverage data into JUnit test reports
|
---|
| 129 | - japicc/ used to generate a compatibility report between optimized jar and normal one
|
---|
[5341] | 130 | - javacc.jar used in the build process to generate some .java files from a javacc source file
|
---|
| 131 | (src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSParser.jj)
|
---|
| 132 | - proguard.jar optimize final binary jar - see build.xml (not used in production so far)
|
---|
[7867] | 133 | - xmltask.jar used to edit XML files from Ant for the OSX package
|
---|
| 134 | - windows/ files needed to create the Windows installer
|
---|
[5341] | 135 |
|
---|
| 136 | The 'patches' directory
|
---|
| 137 | -----------------------
|
---|
[10713] | 138 | Some libraries that JOSM depends on, are patched for various reasons. The
|
---|
| 139 | files in the patches directory can be used to roll back these customizations.
|
---|
| 140 | This is useful in order to
|
---|
[5545] | 141 | * inspect the changes
|
---|
[5341] | 142 | * update to a newer version of the library but keep the modifications
|
---|
| 143 |
|
---|
[5545] | 144 | You can use 'quilt' to manage the patches. E.g. the following command applies all of them:
|
---|
[5341] | 145 |
|
---|
| 146 | $ quilt push -a
|
---|
| 147 |
|
---|
| 148 | Of course, it is also possible to apply the patch files manually one by one.
|
---|
| 149 |
|
---|
[5545] | 150 | Third party libraries
|
---|
| 151 | ---------------------
|
---|
[7867] | 152 | There are some third party libraries which are directly included in the source code tree, in particular:
|
---|
[5341] | 153 |
|
---|
[5545] | 154 | * jmapviewer: Java component to browse a TMS map
|
---|
| 155 | src/org/openstreetmap/gui (svn external)
|
---|
| 156 | -> http://svn.openstreetmap.org/applications/viewer/jmapviewer/
|
---|
[7867] | 157 | * Apache commons compress: Support for bzip2 compression when opening files
|
---|
| 158 | src/org/apache/commons/compress/compressors (svn external)
|
---|
[10864] | 159 | -> https://github.com/apache/commons-compress
|
---|
[7489] | 160 | * Apache commons validator: Improved validator routines
|
---|
| 161 | src/org/openstreetmap/josm/data/validation/routines
|
---|
| 162 | -> http://commons.apache.org/proper/commons-validator
|
---|
[5545] | 163 | * SVG Salamander: Support for SVG image format
|
---|
| 164 | src/com/kitfox/svg
|
---|
[10864] | 165 | -> https://github.com/blackears/svgSalamander
|
---|
[5545] | 166 | * Metadata Extractor: Read EXIF Metadata of photos
|
---|
| 167 | src/com/drew
|
---|
[10864] | 168 | -> https://github.com/drewnoakes/metadata-extractor
|
---|
[5545] | 169 | * Signpost: OAuth library
|
---|
| 170 | src/oauth, src/com/google
|
---|
[10864] | 171 | -> https://github.com/mttkay/signpost
|
---|
[5545] | 172 | * GNU getopt Java port: Command line argument processing library
|
---|
| 173 | src/gnu/getopt
|
---|
[10864] | 174 | -> https://github.com/arenn/java-getopt
|
---|
[5545] | 175 | * MultiSplitPane: Small lib for GUI layout management
|
---|
| 176 | src/org/openstreetmap/josm/gui/MultiSplitLayout.java, MultiSplitPane.java
|
---|
| 177 | -> http://today.java.net/pub/a/today/2006/03/23/multi-split-pane.html
|
---|
[10864] | 178 | -> https://community.oracle.com/docs/DOC-983539
|
---|
[5545] | 179 | * swinghelper: Class CheckThreadViolationRepaintManager to find classpath violations
|
---|
| 180 | src/org/jdesktop/swinghelper/debug/CheckThreadViolationRepaintManager.java
|
---|
[7489] | 181 | -> https://java.net/projects/swinghelper
|
---|