forked from geonetwork/core-geonetwork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate_datadir.ps1
16 lines (12 loc) · 907 Bytes
/
update_datadir.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
. "$scriptPath\config.ps1"
if (Test-Path "$DATA_DIR/data/formatter" -PathType Any) {rm -Recurse -Force $DATA_DIR/data/formatter}
if (Test-Path "$DATA_DIR/config" -PathType Any) {rm -Recurse -Force $DATA_DIR/config}
mkdir $DATA_DIR/config/schema_plugins
if (!(Test-Path "$DATA_DIR/data" -PathType Any)) {mkdir $DATA_DIR/data}
cp -R $WEB_DIR/src/main/webapp/WEB-INF/data/config/codelist $DATA_DIR/config/
cp -R $WEB_DIR/src/main/webapp/WEB-INF/data/data/formatter $DATA_DIR/data/
cp -R $scriptPath/../schemas/csw-record/src/main/plugin/* $DATA_DIR/config/schema_plugins
cp -R $scriptPath/../schemas/dublin-core/src/main/plugin/* $DATA_DIR/config/schema_plugins
cp -R $scriptPath/../schemas/iso19110/src/main/plugin/* $DATA_DIR/config/schema_plugins
cp -R $scriptPath/../schemas/iso19139/src/main/plugin/* $DATA_DIR/config/schema_plugins