You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ctakes.apache.org by ja...@apache.org on 2017/04/05 23:47:00 UTC

svn commit: r1790333 - /ctakes/trunk/ctakes-distribution/src/main/bin/runctakesCVD.bat

Author: james-masanz
Date: Wed Apr  5 23:47:00 2017
New Revision: 1790333

URL: http://svn.apache.org/viewvc?rev=1790333&view=rev
Log:
instead of loading an AE by default which r1789252 was going to do, and being different than runctakesCVD.sh,  have runctakesCVD.bat take a parameter like runctakesCVD.sh does, and we can document in the guide to pass a parameter to save user the step of loading. CTAKES-330

Modified:
    ctakes/trunk/ctakes-distribution/src/main/bin/runctakesCVD.bat

Modified: ctakes/trunk/ctakes-distribution/src/main/bin/runctakesCVD.bat
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-distribution/src/main/bin/runctakesCVD.bat?rev=1790333&r1=1790332&r2=1790333&view=diff
==============================================================================
--- ctakes/trunk/ctakes-distribution/src/main/bin/runctakesCVD.bat (original)
+++ ctakes/trunk/ctakes-distribution/src/main/bin/runctakesCVD.bat Wed Apr  5 23:47:00 2017
@@ -49,11 +49,29 @@ if exist "%JAVA_HOME%\bin\java.exe" set
 
 cd %CTAKES_HOME%
 
-if exist "desc/ctakes-clinical-pipeline/desc/analysis_engine/AggregatePlaintextFastUMLSProcessor.xml" ( 
-  java -cp "%CTAKES_HOME%/desc/;%CTAKES_HOME%/resources/;%CTAKES_HOME%/lib/*" -Dlog4j.configuration=file:/%CTAKES_HOME%/config/log4j.xml -Xms512M -Xmx3g org.apache.uima.tools.cvd.CVD -desc desc/ctakes-clinical-pipeline/desc/analysis_engine/AggregatePlaintextFastUMLSProcessor.xml
+IF "%~1"=="" GOTO NoParam
+
+IF NOT "%~2"=="" GOTO MoreThanOneParam
+
+if exist "%CTAKES_HOME%\%1" (
+  echo CVD will load AE "%CTAKES_HOME%\%1"
+  java -cp "%CTAKES_HOME%/desc/;%CTAKES_HOME%/resources/;%CTAKES_HOME%/lib/*" -Dlog4j.configuration=file:/%CTAKES_HOME%/config/log4j.xml -Xms512M -Xmx3g org.apache.uima.tools.cvd.CVD -desc %1
 ) else (
-  java -cp "%CTAKES_HOME%/desc/;%CTAKES_HOME%/resources/;%CTAKES_HOME%/lib/*" -Dlog4j.configuration=file:/%CTAKES_HOME%/config/log4j.xml -Xms512M -Xmx3g org.apache.uima.tools.cvd.CVD
+  echo Unable to find descriptor "%1"
+  GOTO NoParam
 )
   
+GOTO ChangeBack
+
+:NoParam
+  echo Use the GUI to select the AE to load
+  java -cp "%CTAKES_HOME%/desc/;%CTAKES_HOME%/resources/;%CTAKES_HOME%/lib/*" -Dlog4j.configuration=file:/%CTAKES_HOME%/config/log4j.xml -Xms512M -Xmx3g org.apache.uima.tools.cvd.CVD
+GOTO ChangeBack
+
+
+:MoreThanOneParam
+  echo You entered more than one parameter. Second parameter is "%2" 
+
+:ChangeBack
 cd %CURRENT_DIR%
 :end