-
Notifications
You must be signed in to change notification settings - Fork 2
/
_refresh.bat
36 lines (30 loc) · 1.42 KB
/
_refresh.bat
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
@ECHO OFF
SET tooling_jar=tooling-1.4.1-SNAPSHOT-jar-with-dependencies.jar
SET input_cache_path=%~dp0input-cache
SET resources_path=%~dp0input\resources
SET ig_ini_path=%~dp0ig.ini
SET root_dir=%~dp0
rem following line removes trailing '\'
SET root_dir=%root_dir:~0,-1%
SET ig_path=input\opioid-cds.xml
ECHO Checking internet connection...
PING tx.fhir.org -n 1 -w 1000 | FINDSTR TTL && GOTO isonline
ECHO We're offline...
SET fsoption=
GOTO igpublish
:isonline
ECHO We're online, setting publish to the Connectathon sandbox FHIR server
SET fsoption=
:igpublish
SET JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8
IF EXIST "%input_cache_path%\%tooling_jar%" (
ECHO running: JAVA -jar "%input_cache_path%\%tooling_jar%" -RefreshIG -root-dir="%root_dir%" -ig-path="%ig_path%" -rp="%resources_path%" -cdsig -d -p $fsoption
JAVA -jar "%input_cache_path%\%tooling_jar%" -RefreshIG -root-dir="%root_dir%" -ig-path="%ig_path%" -rp="%resources_path%" -d -p -t $fsoption
) ELSE If exist "..\%tooling_jar%" (
ECHO running: JAVA -jar "..\%tooling_jar%" -RefreshIG -root-dir="%root_dir%" -ig-path="%ig_path%" -cdsig -d -p -t %fsoption%
JAVA -jar "..\%tooling_jar%" -RefreshIG -root-dir="%root_dir%" -ig-path="%ig_path%" -rp="%resources_path%" -d -p -t $fsoption
) ELSE (
ECHO CQF Tooling NOT FOUND in input-cache or parent folder. Please run _updateCQFTooling. Aborting...
)
_refreshTerminologyBundle.bat
input/pagecontent/quick-start-bundles/_refreshQuickStart.bat