Skip to content

v0.2.52..v0.2.53 changeset make hoot josm java.sh

Garret Voltz edited this page Feb 12, 2020 · 1 revision
diff --git a/scripts/core/make-hoot-josm-java.sh b/scripts/core/make-hoot-josm-java.sh
new file mode 100755
index 0000000..2056896
--- /dev/null
+++ b/scripts/core/make-hoot-josm-java.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+set -e
+
+cd $HOOT_HOME/hoot-josm
+
+JOSM_ARTIFACT_ID=`awk -F '[<>]' '/<josm.artifactId>/{print $3}' pom.xml`
+JOSM_VERSION=`awk -F '[<>]' '/<josm.version>/{print $3}' pom.xml`
+JOSM_JAR=$JOSM_ARTIFACT_ID-$JOSM_VERSION.jar
+
+# needs to be done first time for the me jar only
+# wget --quiet http://me-josm-url
+# mvn install:install-file -Dfile=/home/vagrant/hoot/tmp/$JOSM_JAR -DgroupId=org.openstreetmap.josm -DartifactId=$JOSM_ARTIFACT_ID -Dversion=$JOSM_VERSION -Dpackaging=jar -DgeneratePom=true
+
+mvn -q package
+
+# This prevents from having to change the default value of jni.class.path in ConfigOptions.asciidoc.
+DEP_DIR=target/dependency-jars
+cp $DEP_DIR/$JOSM_JAR $DEP_DIR/hoot-josm.jar
+
+cd $HOOT_HOME
Clone this wiki locally