{ "name": "@vaadin/vaadin-core", "version": "24.2.0-alpha10", "description": "Vaadin components is an evolving set of free, open sourced custom HTML elements for building mobile and desktop web applications in modern browsers.", "author": "Vaadin Ltd", "license": "Apache-2.0", "main": "vaadin-core.js", "dependencies": { "@vaadin/a11y-base": "24.2.0-alpha16", "@vaadin/accordion": "24.2.0-alpha16", "@vaadin/app-layout": "24.2.0-alpha16", "@vaadin/avatar": "24.2.0-alpha16", "@vaadin/avatar-group": "24.2.0-alpha16", "@vaadin/button": "24.2.0-alpha16", "@vaadin/checkbox": "24.2.0-alpha16", "@vaadin/checkbox-group": "24.2.0-alpha16", "@vaadin/combo-box": "24.2.0-alpha16", "@vaadin/component-base": "24.2.0-alpha16", "@vaadin/confirm-dialog": "24.2.0-alpha16", "@vaadin/context-menu": "24.2.0-alpha16", "@vaadin/custom-field": "24.2.0-alpha16", "@vaadin/date-picker": "24.2.0-alpha16", "@vaadin/date-time-picker": "24.2.0-alpha16", "@vaadin/details": "24.2.0-alpha16", "@vaadin/dialog": "24.2.0-alpha16", "@vaadin/email-field": "24.2.0-alpha16", "@vaadin/field-base": "24.2.0-alpha16", "@vaadin/field-highlighter": "24.2.0-alpha16", "@vaadin/form-layout": "24.2.0-alpha16", "@vaadin/grid": "24.2.0-alpha16", "@vaadin/horizontal-layout": "24.2.0-alpha16", "@vaadin/icon": "24.2.0-alpha16", "@vaadin/icons": "24.2.0-alpha16", "@vaadin/input-container": "24.2.0-alpha16", "@vaadin/integer-field": "24.2.0-alpha16", "@vaadin/item": "24.2.0-alpha16", "@vaadin/list-box": "24.2.0-alpha16", "@vaadin/lit-renderer": "24.2.0-alpha16", "@vaadin/login": "24.2.0-alpha16", "@vaadin/menu-bar": "24.2.0-alpha16", "@vaadin/message-input": "24.2.0-alpha16", "@vaadin/message-list": "24.2.0-alpha16", "@vaadin/multi-select-combo-box": "24.2.0-alpha16", "@vaadin/notification": "24.2.0-alpha16", "@vaadin/number-field": "24.2.0-alpha16", "@vaadin/overlay": "24.2.0-alpha16", "@vaadin/password-field": "24.2.0-alpha16", "@vaadin/polymer-legacy-adapter": "24.2.0-alpha16", "@vaadin/progress-bar": "24.2.0-alpha16", "@vaadin/radio-group": "24.2.0-alpha16", "@vaadin/scroller": "24.2.0-alpha16", "@vaadin/select": "24.2.0-alpha16", "@vaadin/side-nav": "24.2.0-alpha16", "@vaadin/split-layout": "24.2.0-alpha16", "@vaadin/tabs": "24.2.0-alpha16", "@vaadin/tabsheet": "24.2.0-alpha16", "@vaadin/text-area": "24.2.0-alpha16", "@vaadin/text-field": "24.2.0-alpha16", "@vaadin/time-picker": "24.2.0-alpha16", "@vaadin/tooltip": "24.2.0-alpha16", "@vaadin/upload": "24.2.0-alpha16", "@vaadin/vaadin-development-mode-detector": "2.0.6", "@vaadin/vaadin-lumo-styles": "24.2.0-alpha16", "@vaadin/vaadin-material-styles": "24.2.0-alpha16", "@vaadin/router": "1.7.5", "@vaadin/vaadin-usage-statistics": "2.1.2", "@vaadin/vertical-layout": "24.2.0-alpha16", "@vaadin/virtual-list": "24.2.0-alpha16" }, "files": [ "vaadin-core.js" ], "keywords": [ "vaadin", "core", "elements", "web", "components", "webcomponents", "web-components" ] } ue='feat/smarini/BUILD-6088-add-security-md'>feat/smarini/BUILD-6088-add-security-md Continuous Inspection: https://github.com/SonarSource/sonarqubewww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/start.sh
blob: 1971abcaab811beedc22dff62d2062e1559db422 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/usr/bin/env bash
###############################
# usage: start.sh [ -e ARG ] [ -p ARG ] [ -l ARG ]
#  -e ARG: edition to run
#          valid values are (case insensitive):
#             'community', 'oss',
#             'developer', 'dev',
#             'enterprise', 'ent',
#             'datacenter', 'dc', 'dce'.
#          default value is 'community'.
#  -p ARG: name(s) of patch separated by colon (name of patch is filename without extension)
#  -l ARG: name of log file to display.
#          valid values are 'all', 'sonar', 'web', 'ce' and 'es' (case insensitive).
#          default value is 'all'.
###############################

set -euo pipefail

ROOT=$(pwd)

source "$ROOT/scripts/editions.sh"
if [ -r "$ROOT/private/scripts/editions.sh" ]; then
  source "$ROOT/private/scripts/editions.sh"
fi
source "$ROOT/scripts/logs.sh"
source "$ROOT/scripts/stop.sh"
source "$ROOT/scripts/os.sh"

PATCHES=""
EDITION="$DEFAULT_EDITION"
LOG="$DEFAULT_LOG"
while getopts ":e:p:l:" opt; do
  case "$opt" in
    e) EDITION=${OPTARG:=$DEFAULT_EDITION}
       ;;
    p) PATCHES="$OPTARG"
       ;;
    l) LOG=${OPTARG:=$DEFAULT_LOG}
       ;;
    \?)
      echo "Unsupported option $OPTARG" >&2
      exit 1 
      ;;
  esac
done

EDITION=$(resolveAliases "$EDITION")
checkEdition "$EDITION"
checkLogArgument "$LOG"

OSS_ZIP="$(distributionDirOf "community")/$(baseFileNameOf "community")-*.zip"
if ! ls ${OSS_ZIP} &> /dev/null; then
  echo 'Sources are not built'
  "$ROOT"/build.sh
fi

# stop SQ running in any instance
stopAny

cd "$(distributionDirOf "$EDITION")"

SH_FILE_DIR="sonarqube-*/bin/$OS_DIR/"
if ! ls $SH_FILE_DIR &> /dev/null; then
  BASE_FILE_NAME="$(baseFileNameOf "$EDITION")"
  echo "Unpacking ${BASE_FILE_NAME}..."
  ZIP_FILE="${BASE_FILE_NAME}-*.zip"
  unzip -qq ${ZIP_FILE}
fi
cd $(find sonarqube-* -type d | head -1)

SQ_HOME=$(pwd)
cd "$ROOT"

source "$ROOT"/scripts/patches_utils.sh

SQ_EXEC="$SQ_HOME/bin/$OS_DIR/$SH_FILE"

# invoke patches if at least one was specified
# each patch is passed the path to the SQ instance home directory as first and only argument
if [ "$PATCHES" ]; then
  call_patches "$PATCHES" "$SQ_HOME"
fi

runSQ $SQ_EXEC
sleep 1
doTail "$LOG"