diff contrib/make_flys_release/bin/make-importer-package.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/bin/make-importer-package.sh	Fri Jan 20 12:22:24 2023 +0100
+++ b/contrib/make_flys_release/bin/make-importer-package.sh	Mon Feb 06 16:57:03 2023 +0100
@@ -25,13 +25,14 @@
 
 OPTIONS:
    -?, --help          Show this message
+   -o, --oracle        Package is for Oracle.
    VERSION must specify a tag (usually MAYOR.MINOR.PATCH) or a branch name.
    With EXTRAS, a tarball with dependencies can be given.
 EOF
 exit 0
 }
 
-OPTS=`getopt -o ? -l help -n $0 -- "$@"`
+OPTS=`getopt -o ?,o -l help,oracle -n $0 -- "$@"`
 
 if [ $? != 0 ] ; then usage; fi
 eval set -- "$OPTS"
@@ -42,6 +43,9 @@
     "--")
       shift
       break;;
+    "-o"|"--oracle")
+      BUILD_ORACLE="TRUE"
+      shift;;
     *)
       echo "Unknown Option $1"
       usage;;
@@ -77,7 +81,11 @@
 pdflatex importer-manual.tex
 
 # package importer
-mvn -f $SOURCE_DIR/backend/pom.xml clean package assembly:single
+if [ "$BUILD_ORACLE" = "TRUE" ]; then
+    mvn -f $SOURCE_DIR/backend/pom-oracle.xml clean package assembly:single
+else
+    mvn -f $SOURCE_DIR/backend/pom.xml clean package assembly:single
+fi
 
 echo "INFO: create tarball"
 rm -fr $PKG_DIR

http://dive4elements.wald.intevation.org