Index: trunk/native/Dockerfile
===================================================================
--- trunk/native/Dockerfile	(revision 17976)
+++ trunk/native/Dockerfile	(revision 17976)
@@ -0,0 +1,15 @@
+FROM openjdk:8-jdk-alpine
+
+RUN apk update && \
+    apk add apache-ant && \
+    apk add ttf-dejavu && \
+    apk add subversion && \
+    apk add git && \
+    rm /var/cache/apk/*
+
+COPY . /josm
+
+RUN mkdir -p /josm/test/report
+
+CMD cd /josm && \
+    ant test-html -DnoJavaFX=true
Index: trunk/native/docker-test.bat
===================================================================
--- trunk/native/docker-test.bat	(revision 17976)
+++ trunk/native/docker-test.bat	(revision 17976)
@@ -0,0 +1,6 @@
+docker build . -t josm/josm
+mkdir %CD%\test\report
+docker run -it --name josm -v %CD%\test\report:/josm/test/report josm/josm
+docker rm josm
+docker rmi josm/josm
+pause
Index: trunk/native/docker-test.sh
===================================================================
--- trunk/native/docker-test.sh	(revision 17976)
+++ trunk/native/docker-test.sh	(revision 17976)
@@ -0,0 +1,5 @@
+docker build . -t josm/josm
+mkdir -p test/report
+docker run -it --name josm -v `pwd`/test/report:/josm/test/report josm/josm
+docker rm josm
+docker rmi josm/josm
Index: trunk/native/josm-latest.jnlp
===================================================================
--- trunk/native/josm-latest.jnlp	(revision 17976)
+++ trunk/native/josm-latest.jnlp	(revision 17976)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE jnlp PUBLIC "-//Sun Microsystems, Inc//DTD JNLP Descriptor 6.0//EN" "http://java.sun.com/dtd/JNLP-6.0.dtd">
+<jnlp spec="6.0+" codebase="https://josm.openstreetmap.de/download/" href="josm-latest.jnlp">
+    <information>
+        <title>JOSM (development version)</title>
+        <vendor>OpenStreetMap</vendor> 
+        <homepage href="https://josm.openstreetmap.de"/> 
+        <description>Java OpenStreetMap editor</description>
+        <description kind="one-line">JOSM</description>
+        <description kind="tooltip">JOSM</description>
+        <icon href="https://josm.openstreetmap.de/logo.png" width="256" height="256"/>
+        <icon href="https://josm.openstreetmap.de/logo64.png" width="64" height="64" kind="shortcut"/>
+        <offline-allowed/>
+        <shortcut>
+            <desktop/>
+            <menu/>
+        </shortcut>
+    </information>
+    <security>
+        <all-permissions/>
+    </security>
+    <resources>
+        <java version="1.8+" java-vm-args="--add-modules=java.scripting,java.sql --add-exports=java.base/sun.security.action=ALL-UNNAMED --add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED --add-exports=javafx.graphics/com.sun.javafx.application=ALL-UNNAMED --add-exports=jdk.deploy/com.sun.deploy.config=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED"/>
+        <jar href="josm-latest.jar"/>
+        <property name="java.util.Arrays.useLegacyMergeSort" value="true"/>
+    </resources>
+    <application-desc main-class="org.openstreetmap.josm.gui.MainApplication"/>
+</jnlp>
Index: trunk/native/josm.jnlp
===================================================================
--- trunk/native/josm.jnlp	(revision 17976)
+++ trunk/native/josm.jnlp	(revision 17976)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE jnlp PUBLIC "-//Sun Microsystems, Inc//DTD JNLP Descriptor 6.0//EN" "http://java.sun.com/dtd/JNLP-6.0.dtd">
+<jnlp spec="6.0+" codebase="https://josm.openstreetmap.de/download/" href="josm.jnlp">
+    <information>
+        <title>JOSM</title>
+        <vendor>OpenStreetMap</vendor> 
+        <homepage href="https://josm.openstreetmap.de"/> 
+        <description>Java OpenStreetMap editor</description>
+        <description kind="one-line">JOSM</description>
+        <description kind="tooltip">JOSM</description>
+        <icon href="https://josm.openstreetmap.de/logo.png" width="256" height="256"/>
+        <icon href="https://josm.openstreetmap.de/logo64.png" width="64" height="64" kind="shortcut"/> 
+        <offline-allowed/>
+        <shortcut>
+            <desktop/>
+            <menu/>
+        </shortcut>
+    </information>
+    <security>
+        <all-permissions/>
+    </security>
+    <resources>
+        <java version="1.8+" java-vm-args="--add-modules=java.scripting,java.sql --add-exports=java.base/sun.security.action=ALL-UNNAMED --add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED --add-exports=javafx.graphics/com.sun.javafx.application=ALL-UNNAMED --add-exports=jdk.deploy/com.sun.deploy.config=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED"/>
+        <jar href="josm-tested.jar"/>
+        <property name="java.util.Arrays.useLegacyMergeSort" value="true"/>
+    </resources>
+    <application-desc main-class="org.openstreetmap.josm.gui.MainApplication"/>
+</jnlp>
Index: trunk/native/snapcraft.yaml
===================================================================
--- trunk/native/snapcraft.yaml	(revision 17976)
+++ trunk/native/snapcraft.yaml	(revision 17976)
@@ -0,0 +1,47 @@
+name: josm
+version: 0.git
+summary: Editor for OpenStreetMap
+description: |
+ JOSM is an extensible editor for ​OpenStreetMap (OSM) written in Java.
+ It supports loading GPX tracks, background imagery and OSM data from
+ local sources as well as from online sources and allows to edit the
+ OSM data (nodes, ways and relations) and their metadata tags.
+ JOSM is open source and licensed under GPL​.
+ 
+ OpenStreetMap is a project aimed squarely at creating and providing
+ free geographic data such as street maps to anyone who wants them.
+ The project was started because most maps you think of as free actually
+ have legal or technical restrictions on their use, holding back people
+ from using them in creative, productive or unexpected ways.
+confinement: strict
+grade: devel
+icon: native/linux/tested/usr/share/icons/hicolor/128x128/apps/josm.png
+
+apps:
+ josm:
+   command: josm-launch
+   desktop: josm.desktop
+   plugs: [unity7, network, home]
+
+parts:
+    local:
+        plugin: ant
+        ant-properties:
+            dist.dir: $SNAPCRAFT_PART_INSTALL
+        source: .
+        install: |
+            cp -a native/linux/tested/usr/share/applications/josm.desktop $SNAPCRAFT_PART_INSTALL/
+            cat<<'EOF' > $SNAPCRAFT_PART_INSTALL/josm-launch
+            #!/bin/sh
+            # ensure font-config is happy
+            export XDG_DATA_HOME=$SNAP/usr/share
+            export FONTCONFIG_PATH=$SNAP/etc/fonts/config.d
+            export FONTCONFIG_FILE=$SNAP/etc/fonts/fonts.conf
+            export HOME=$SNAP_USER_DATA
+            # ensure java is happy as well
+            export JRE_HOME=$SNAP/usr/lib/jvm/default-java/jre
+            export JAVA_HOME=$SNAP/usr/lib/jvm/default-java/jre
+            java -Duser.home=$SNAP_USER_DATA -jar $SNAP/josm-custom.jar
+            EOF
+            chmod +x $SNAPCRAFT_PART_INSTALL/josm-launch
+          
