Merge pull request #1820 from OpenRefine/thadguidry-patch-1
Add exception handling for "refine" command
This commit is contained in:
commit
27818564c9
@ -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 ------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user