comparison contrib/make_flys_release/make_release.sh @ 8402:35b3bbd1365f

Add possibility to give custom client log4j.properties.
author Tom Gottfried <tom@intevation.de>
date Fri, 10 Oct 2014 15:44:34 +0200
parents 24d3370af00b
children fe43340352bc
comparison
equal deleted inserted replaced
8401:5b3947bac65d 8402:35b3bbd1365f
198 echo "[INFO]: Preparing configuration of web client" 198 echo "[INFO]: Preparing configuration of web client"
199 echo "[INFO]: Tomcat Port: $TOMCAT_PORT" 199 echo "[INFO]: Tomcat Port: $TOMCAT_PORT"
200 echo "[INFO]: Artifact Port: $ARTIFACT_PORT" 200 echo "[INFO]: Artifact Port: $ARTIFACT_PORT"
201 201
202 #Needs to be done before the tomcat replacement below 202 #Needs to be done before the tomcat replacement below
203 if [ -r "$FEATURES_XML" ]; then
204 cp "$FEATURES_XML" \
205 $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/WEB-INF/features.xml
206 fi
207
208 if [ -r "$CLIENT_LOG4J" ]; then
209 cp "$CLIENT_LOG4J" \
210 $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/WEB-INF/log4j.properties
211 fi
212
203 sed -i -e "s@http://localhost:8080/d4e/flys/mapfish-print@https://localhost/flys-${VERSION}/flys/mapfish-print@g" \ 213 sed -i -e "s@http://localhost:8080/d4e/flys/mapfish-print@https://localhost/flys-${VERSION}/flys/mapfish-print@g" \
204 $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/WEB-INF/web.xml 214 $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/WEB-INF/web.xml
205 215
206 sed -i -e "s@http://localhost:8181@http://localhost:$ARTIFACT_PORT@g" \ 216 sed -i -e "s@http://localhost:8181@http://localhost:$ARTIFACT_PORT@g" \
207 -e "s@http://localhost:8888@http://localhost:$TOMCAT_PORT@g" \ 217 -e "s@http://localhost:8888@http://localhost:$TOMCAT_PORT@g" \
211 $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/WEB-INF/web.xml 221 $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/WEB-INF/web.xml
212 222
213 sed -i -e "s@https://flys3-devel.bafg.de/wiki@${WIKI_URL}@g" \ 223 sed -i -e "s@https://flys3-devel.bafg.de/wiki@${WIKI_URL}@g" \
214 $FLYS_SOURCE_DIR/river/gwt-client/src/main/java/org/dive4elements/river/client/client/config.xml 224 $FLYS_SOURCE_DIR/river/gwt-client/src/main/java/org/dive4elements/river/client/client/config.xml
215 225
216 sed -i -e "s@/var/log/d4e-river/d4e-client.log@${LOG_DIR}/client-${VERSION}.log@g" \ 226 sed -i -e \
227 "s@/var/log/d4e-river/d4e-client.log@${LOG_DIR}/client-VERSION.log@g" \
228 $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/WEB-INF/log4j.properties
229
230 sed -i -e "s@VERSION@${VERSION}@g" \
217 $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/WEB-INF/log4j.properties 231 $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/WEB-INF/log4j.properties
218 232
219 sed -i -e "s@1a4825f6-925f-11e3-8165-001f29e71d12@${ELBE_MODEL_UUID}@g" \ 233 sed -i -e "s@1a4825f6-925f-11e3-8165-001f29e71d12@${ELBE_MODEL_UUID}@g" \
220 $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/images/FLYS_Karte_interactive.html 234 $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/images/FLYS_Karte_interactive.html
221
222 if [ -r "$FEATURES_XML" ]; then
223 cp "$FEATURES_XML" $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/WEB-INF/features.xml
224 fi
225 235
226 find $FLYS_SOURCE_DIR/river/ -name \*.properties -o -name \*.xsl | \ 236 find $FLYS_SOURCE_DIR/river/ -name \*.properties -o -name \*.xsl | \
227 xargs sed -i "s@https://flys-intern.intevation.de@${WIKI_URL}@g"; 237 xargs sed -i "s@https://flys-intern.intevation.de@${WIKI_URL}@g";
228 238
229 if [ -r "$WMSSERVICES_XML" ]; then 239 if [ -r "$WMSSERVICES_XML" ]; then

http://dive4elements.wald.intevation.org