forked from geonetwork/core-geonetwork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.ps1
51 lines (40 loc) · 1.79 KB
/
config.ps1
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
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
$WEB_DIR="$scriptPath\..\web"
$JEEVES_DIR="$scriptPath\..\jeeves"
##################################################################################################
#
# START Parameter Section
#
##################################################################################################
##################################################################################################
# The parameters below can be overridden in your personal
# configuration file if the default don't work in your environment
##################################################################################################
# parameters passed to maven to enable debugging. By default port 5005 will be the debug port
$DEBUG="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5006"
# The memory settings used when running server
$MEMORY="-XX:MaxPermSize=256m -Xmx1024M -server"
# The directory that will be configured by setup scripts to be used as the Geonetwork datadirectory
# It should be empty (or not yet exist)
# IMPORTANT clean.sh will delete the directory so make sure it is empty
$DATA_DIR="$scriptPath\..\datadir"
##################################################################################################
#
# END Parameter Section
#
##################################################################################################
# Load personal config file
$CONFIG_FILE="$scriptPath\config_$Env:Username`.ps1"
If (Test-Path $CONFIG_FILE -PathType Leaf)
{
echo "Loading configuration parameters from $CONFIG_FILE"
. "$CONFIG_FILE"
} else
{
echo "Configuration file: $CONFIG_FILE does not exist. Skipping system specific configuration file"
}
$LOG = ".\web\geonetwork.log"
If (Test-Path $LOG -PathType Leaf)
{
rm $LOG
}