# HG changeset patch # User Tom Gottfried # Date 1495030264 -7200 # Node ID d8d71005a210df98160a0041fb31b1958c754e35 # Parent c9a22d62593add4405d7c636bf45a2d47bdf75b2 ETL: use Java 7, include run-script and docs when packaging. Changes to bin/run.sh might have been avoidable, but at least its more in line with artifacts now. diff -r c9a22d62593a -r d8d71005a210 etl/README.txt --- a/etl/README.txt Wed May 17 15:53:32 2017 +0200 +++ b/etl/README.txt Wed May 17 16:11:04 2017 +0200 @@ -31,14 +31,16 @@ * Für den eigentlichen Oracle-kompatiblen Bau kann dann folgendes aufgerufen werden: - $ mvn -f pom-oracle.xml clean compile assembly:single + $ mvn -f pom-oracle.xml clean package assembly:single - $ cp target/river-etl-1.0-SNAPSHOT-jar-with-dependencies.jar \ - bin/etl.jar + Das Archiv target/river-etl-1.0-SNAPSHOT-bin.tar.gz kann dann an den Ort + der Installation verschoben und schließlich entpackt werden: + + $ tar xzf river-etl-1.0-SNAPSHOT-bin.tar.gz * Folgendes führt das fertige Programm dann aus: - $ bin/run.sh + $ river-etl-1.0-SNAPSHOT/bin/run.sh Konfiguration: -------------- diff -r c9a22d62593a -r d8d71005a210 etl/bin/run.sh --- a/etl/bin/run.sh Wed May 17 15:53:32 2017 +0200 +++ b/etl/bin/run.sh Wed May 17 16:11:04 2017 +0200 @@ -1,8 +1,18 @@ #!/bin/bash -bin_dir=`dirname $0` -bin_dir=`readlink -f $bin_dir` +APP=org.dive4elements.river.etl.aft.Sync + +DIR=`dirname $0` +DIR=`readlink -f $DIR` + +CLASSPATH= +for l in `find "$DIR/lib" -name \*.jar -print`; do + CLASSPATH=$CLASSPATH:$l +done + +export CLASSPATH + exec java \ - -Dlog4j.configuration=file://$bin_dir/log4j.properties \ - -Dconfig.file=$bin_dir/../doc/conf-oracle.xml \ - -jar $bin_dir/etl.jar + -Dlog4j.configuration=file://$DIR/log4j.properties \ + -Dconfig.file=$DIR/../doc/conf.xml \ + $APP diff -r c9a22d62593a -r d8d71005a210 etl/pom-oracle.xml --- a/etl/pom-oracle.xml Wed May 17 15:53:32 2017 +0200 +++ b/etl/pom-oracle.xml Wed May 17 16:11:04 2017 +0200 @@ -17,33 +17,17 @@ maven-compiler-plugin 2.0.2 - 1.6 - 1.6 - - - - org.apache.maven.plugins - maven-jar-plugin - - - - org.dive4elements.river.etl.aft.Sync - org.dive4elements.river.etl.aft - - + 1.7 + 1.7 maven-assembly-plugin + 3.0.0 - - - org.dive4elements.river.etl.aft.Sync - - - - jar-with-dependencies - + + src/assembly/assembly.xml + diff -r c9a22d62593a -r d8d71005a210 etl/pom.xml --- a/etl/pom.xml Wed May 17 15:53:32 2017 +0200 +++ b/etl/pom.xml Wed May 17 16:11:04 2017 +0200 @@ -17,33 +17,17 @@ maven-compiler-plugin 2.0.2 - 1.6 - 1.6 - - - - org.apache.maven.plugins - maven-jar-plugin - - - - org.dive4elements.river.etl.aft.Sync - org.dive4elements.river.etl.aft - - + 1.7 + 1.7 maven-assembly-plugin + 3.0.0 - - - org.dive4elements.river.aft.Sync - - - - jar-with-dependencies - + + src/assembly/assembly.xml +