diff contrib/make_flys_release/make_release.sh @ 9778:b57b236c4f4e 3.2.x

Backed out changeset b1b48fa7bd80 It turns out that, while this works for PostgreSQL/PostGIS, it does not with Oracle. Hibernatespatial tries to map spatial types to PostGIS hibernate types in both cases.
author Tom Gottfried <tom@intevation.de>
date Mon, 06 Feb 2023 16:57:03 +0100
parents b1b48fa7bd80
children 3847836c60b5
line wrap: on
line diff
--- a/contrib/make_flys_release/make_release.sh	Fri Jan 20 12:22:24 2023 +0100
+++ b/contrib/make_flys_release/make_release.sh	Mon Feb 06 16:57:03 2023 +0100
@@ -37,6 +37,7 @@
    -t                  Tag the selected branch with given name.
                        Note that \$USER is used as the repository user name
                        for pushing the tags.
+   -o, --oracle        Release is for oracle.
    TARGET must specify a tag (usually MAYOR.MINOR.PATCH) or a branch name.
 EOF
 exit 0
@@ -55,8 +56,8 @@
 # customizable variables
 ELBE_MODEL_UUID=${ELBE_MODEL_UUID:-1a4825f6-925f-11e3-8165-001f29e71d12}
 
-OPTS=`getopt -o ?w:,?t: \
-     -l help \
+OPTS=`getopt -o ?w:,?t:,o \
+     -l help,oracle \
      -n $0 -- "$@"`
 
 if [ $? != 0 ] ; then usage; fi
@@ -71,6 +72,9 @@
     "-w")
       WORK_DIR=$2
       shift 2;;
+    "-o"|"--oracle")
+      BUILD_ORACLE="TRUE"
+      shift;;
     "-t")
       DO_TAG=$2
       shift 2;;
@@ -269,7 +273,14 @@
 echo "INFO: compile and build sources"
 cp $WORK_DIR/wsplgen-linux-64bit-static \
     $FLYS_SOURCE_DIR/river/artifacts/bin/wsplgen
-mvn -f $FLYS_SOURCE_DIR/river/artifacts/pom.xml package assembly:single
+
+if [ "$BUILD_ORACLE" = "TRUE" ]; then
+    mvn -f $FLYS_SOURCE_DIR/river/backend/pom-oracle.xml clean compile install
+    mvn -f $FLYS_SOURCE_DIR/river/artifacts/pom-oracle.xml \
+        package assembly:single
+else
+    mvn -f $FLYS_SOURCE_DIR/river/artifacts/pom.xml package assembly:single
+fi
 mvn -f $FLYS_SOURCE_DIR/river/gwt-client/pom.xml clean compile package
 
 

http://dive4elements.wald.intevation.org