aboutsummaryrefslogtreecommitdiffstats
path: root/installation
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2017-03-15 17:45:15 +0000
committerGerrit Code Review <gerrit@openecomp.org>2017-03-15 17:45:15 +0000
commit1866ffb76aa155772bc1adf778d93d368f1e1c62 (patch)
tree1f8672bc3c026638665f2767ae266a411840a52f /installation
parentff3d7bedc2d05dae310355da7984b6f52fe2e3cc (diff)
parent6aa59a7141dfb66b1099ba4481b45076edb1544e (diff)
Merge "Add default path for mvn settings file"
Former-commit-id: 9f4bdc553cfe0b509d6f536b31f44c30d7605935
Diffstat (limited to 'installation')
-rw-r--r--[-rwxr-xr-x]installation/sdnc/src/main/scripts/installZips.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/installation/sdnc/src/main/scripts/installZips.sh b/installation/sdnc/src/main/scripts/installZips.sh
index c1493969..ecff5a5f 100755..100644
--- a/installation/sdnc/src/main/scripts/installZips.sh
+++ b/installation/sdnc/src/main/scripts/installZips.sh
@@ -5,14 +5,14 @@
# openECOMP : SDN-C
# ================================================================================
# Copyright (C) 2017 AT&T Intellectual Property. All rights
-# reserved.
+# reserved.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
-#
+#
# http://www.apache.org/licenses/LICENSE-2.0
-#
+#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -21,6 +21,13 @@
# ============LICENSE_END=========================================================
###
+if [ -z "$SETTINGS_FILE" -a -z "$GLOBAL_SETTINGS_FILE" -a -s "$HOME"/.m2/settings.xml ]
+then
+ DEFAULT_MAVEN_SETTINGS=${HOME}/.m2/settings.xml
+ SETTINGS_FILE=${SETTINGS_FILE:-${DEFAULT_MAVEN_SETTINGS}}
+ GLOBAL_SETTINGS_FILE=${GLOBAL_SETTINGS_FILE:-${DEFAULT_MAVEN_SETTINGS}}
+fi
+
SDNC_HOME=${SDNC_HOME:-/opt/openecomp/sdnc}
targetDir=${1:-${SDNC_HOME}}