Cleaned up launch scripts

This commit is contained in:
Lloyd McKenzie
2019-12-19 00:04:22 -07:00
parent d9a3c6a76b
commit b270e6b5db
4 changed files with 132 additions and 111 deletions

View File

@@ -1,25 +1,27 @@
@echo off
@ECHO OFF
SET publisher_jar=org.hl7.fhir.publisher.jar
SET input_cache_path=%CD%\input-cache\
ECHO Checking internet connection...
PING tx.fhir.org -n 1 -w 1000 | FINDSTR TTL && GOTO isonline
ECHO We're offline...
SET txoption=-tx n/a
GOTO igpublish
echo Checking internet connection...
Ping tx.fhir.org -n 1 -w 1000 | findstr TTL && goto isonline
echo We're offline...
set txoption=-tx n/a
goto igpublish
:isonline
echo We're online
set txoption=
ECHO We're online
SET txoption=
:igpublish
SET JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8
@SET JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8
IF EXIST "%input_cache_path%\%publisher_jar%" (
JAVA -jar input-cache/org.hl7.fhir.publisher.jar -ig ig.ini %txoption%
) ELSE If exist "..\%publisher_jar%" (
JAVA -jar ../%publisher_jar% -ig ig.ini %txoption%
) ELSE (
ECHO IG Publisher NOT FOUND in input-cache or parent folder... aborting
)
If exist "input-cache\org.hl7.fhir.publisher.jar" (
JAVA -jar input-cache/org.hl7.fhir.publisher.jar -ig ig.ini %txoption%
) ELSE If exist "..\org.hl7.fhir.publisher.jar" (
JAVA -jar ../org.hl7.fhir.publisher.jar -ig ig.ini %txoption%
) Else (
@ECHO IG Publisher NOT FOUND in input-cache or parent folder... aborting
)
@PAUSE
PAUSE