-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-as-both.sh
executable file
·43 lines (37 loc) · 1.19 KB
/
run-as-both.sh
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
#!/usr/bin/env bash
#
# Copyright (C) 2018-2020 toop.eu
#
# 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.
# See the License for the specific language governing permissions and
# limitations under the License.
#
version=`mvn -o org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -v '\['`
JAR="target/toop-commander-${version}-bundle.jar"
if [[ ! -r $JAR ]]
then
mvn verify
else
echo "$JAR exists"
fi
export DC_ENABLED=true
export DP_ENABLED=true
export DC_PORT=8080
export DP_PORT=8082
export CLI_ENABLED=true
export FROM_DC_URL="localhost"
export FROM_DC_PORT="8081"
export FROM_DP_URL="localhost"
export FROM_DP_PORT="8081"
# To connect to the playground freedonia tc
# export FROM_DP_URL="tc-elonia.dev.exchange.toop.eu"
# export FROM_DP_PORT=80
java -jar $JAR