-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathserver
executable file
·41 lines (33 loc) · 1.23 KB
/
server
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
#!/bin/sh
# Haplo Platform http://haplo.org
# (c) Haplo Services Ltd 2006 - 2016 http://www.haplo-services.com
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
set -e
. config/paths-`uname`.sh
if [ X$KFRAMEWORK_ENV = X ]
then
KFRAMEWORK_ENV=development
export KFRAMEWORK_ENV
fi
if [ X$KFRAMEWORK_ENV = Xdevelopment ]
then
mkdir -p tmp/properties
# allow user to enable mdns hostnames, but default to off
if [ ! -f tmp/properties/register_mdns_hostnames ]
then
echo no > tmp/properties/register_mdns_hostnames
fi
# Make sure a plugin debugging choice is set -- allows it to be set without accidently getting committed, and defaults to no
if [ ! -f tmp/properties/plugin_debugging_support ]
then
echo yes > tmp/properties/plugin_debugging_support
fi
# Default server classification tags in development
if [ ! -f tmp/properties/server_classification_tags ]
then
echo platform-development-environment > tmp/properties/server_classification_tags
fi
fi
framework/haplo utility config/java.config $JAVA_EXECUTABLE `pwd` $KFRAMEWORK_ENV $@