Merge pull request #1820 from OpenRefine/thadguidry-patch-1

Add exception handling for "refine" command
This commit is contained in:
Antonin Delpeuch 2018-11-15 21:34:21 +00:00 committed by GitHub
commit 27818564c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -184,7 +184,8 @@ set REFINE_LIB_DIR=server\target\lib
rem ----- Respond to the action ---------------------------------------------------------- rem ----- Respond to the action ----------------------------------------------------------
set ACTION=%1 set ACTION=%1
setlocal
%@Try%
if ""%ACTION%"" == ""build"" goto doMvn if ""%ACTION%"" == ""build"" goto doMvn
if ""%ACTION%"" == ""server_test"" goto doMvn if ""%ACTION%"" == ""server_test"" goto doMvn
if ""%ACTION%"" == ""extensions_test"" goto doMvn if ""%ACTION%"" == ""extensions_test"" goto doMvn
@ -192,6 +193,11 @@ if ""%ACTION%"" == ""test"" goto doMvn
if ""%ACTION%"" == ""clean"" goto doMvn if ""%ACTION%"" == ""clean"" goto doMvn
if ""%ACTION%"" == ""distclean"" goto doMvn if ""%ACTION%"" == ""distclean"" goto doMvn
if ""%ACTION%"" == ""run"" goto doRun if ""%ACTION%"" == ""run"" goto doRun
%@EndTry%
:@Catch
echo Unknown Refine command called "%1", type "refine /?" for proper usage.
exit /B 1
:@EndCatch
:doRun :doRun
rem --- Log for troubleshooting ------------------------------------------ rem --- Log for troubleshooting ------------------------------------------