comparison contrib/make_flys_release/bin/make-importer-package.sh @ 8670:32682fa2127d

Move importer configuration to a single place.
author Tom Gottfried <tom@intevation.de>
date Thu, 09 Apr 2015 10:52:51 +0200
parents f7d3fc619976
children ae3df0f96e15
comparison
equal deleted inserted replaced
8669:0bc0d84a4fe0 8670:32682fa2127d
13 rm -fr $PKG_DIR 13 rm -fr $PKG_DIR
14 mkdir -p $PKG_DIR/hydr_morph 14 mkdir -p $PKG_DIR/hydr_morph
15 mkdir -p $PKG_DIR/geodaesie 15 mkdir -p $PKG_DIR/geodaesie
16 mkdir -p $PKG_DIR/opt/lib64 16 mkdir -p $PKG_DIR/opt/lib64
17 mkdir -p $PKG_DIR/schema 17 mkdir -p $PKG_DIR/schema
18 mkdir -p $PKG_DIR/conf
19
20 cat > "$PKG_DIR/conf/log4j.properties" << "EOF"
21 log4j.rootLogger=DEBUG, IMPORTER
22 log4j.appender.IMPORTER.layout=org.apache.log4j.PatternLayout
23 log4j.appender.IMPORTER.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
24 log4j.appender.IMPORTER=org.apache.log4j.RollingFileAppender
25 log4j.appender.IMPORTER.File=./import.log
26 log4j.appender.IMPORTER.MaxFileSize=100000KB
27 log4j.appender.IMPORTER.MaxBackupIndex=10
28 EOF
29 18
30 cd ${FLYS_DIR}/backend 19 cd ${FLYS_DIR}/backend
31 mvn -f pom-oracle.xml clean compile assembly:single 20 mvn -f pom-oracle.xml clean compile assembly:single
32 cp target/backend-1.0-SNAPSHOT-jar-with-dependencies.jar \ 21 cp target/backend-1.0-SNAPSHOT-jar-with-dependencies.jar \
33 $PKG_DIR/hydr_morph/importer.jar 22 $PKG_DIR/hydr_morph/importer.jar
37 cp ${FLYS_DIR}/backend/contrib/shpimporter/*.py $PKG_DIR/geodaesie 26 cp ${FLYS_DIR}/backend/contrib/shpimporter/*.py $PKG_DIR/geodaesie
38 cp ${FLYS_DIR}/backend/contrib/run_geo.sh \ 27 cp ${FLYS_DIR}/backend/contrib/run_geo.sh \
39 ${FLYS_DIR}/backend/contrib/run_hydr_morph.sh \ 28 ${FLYS_DIR}/backend/contrib/run_hydr_morph.sh \
40 ${FLYS_DIR}/backend/contrib/import_river.sh \ 29 ${FLYS_DIR}/backend/contrib/import_river.sh \
41 $PKG_DIR 30 $PKG_DIR
42 cp ${FLYS_DIR}/backend/doc/annotation-types.xml $PKG_DIR/conf 31 cp -r ${FLYS_DIR}/backend/doc/conf $PKG_DIR/
43 if [ -f "$EXTRAS" ]; then 32 if [ -f "$EXTRAS" ]; then
44 cd $PKG_DIR 33 cd $PKG_DIR
45 tar -xzf "$EXTRAS" 34 tar -xzf "$EXTRAS"
46 fi 35 fi
47 36

http://dive4elements.wald.intevation.org