ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vjapa...@apache.org
Subject svn commit: r1555308 - in /ctakes/branches/ytex/ctakes-ytex: README pom.xml
Date Sat, 04 Jan 2014 01:57:37 GMT
Author: vjapache
Date: Sat Jan  4 01:57:36 2014
New Revision: 1555308

URL: http://svn.apache.org/r1555308
Log:
pass ctakes.home to ant script

Modified:
    ctakes/branches/ytex/ctakes-ytex/README
    ctakes/branches/ytex/ctakes-ytex/pom.xml

Modified: ctakes/branches/ytex/ctakes-ytex/README
URL: http://svn.apache.org/viewvc/ctakes/branches/ytex/ctakes-ytex/README?rev=1555308&r1=1555307&r2=1555308&view=diff
==============================================================================
--- ctakes/branches/ytex/ctakes-ytex/README (original)
+++ ctakes/branches/ytex/ctakes-ytex/README Sat Jan  4 01:57:36 2014
@@ -45,13 +45,23 @@ in the ctakes-resources zip from sourcef
 
 After running the maven build, run the ant script to set up your database.  Make sure java
and ant are in your path, 
 and run the following commands
-* Windows
-cd ctakes-ytex\scripts\data
+
+* Open a shell/command prompt
+* Set the CTAKES_HOME variable to be the checkout directory of ctakes (i.e. the parent of
this file's directory) and run the ant script:
+
+{{{
+Windows
+set CTAKES_HOME=xxx
+cd %CTAKES_HOME%\ctakes-ytex\scripts\data
 ant -Dconfig.local=..\..\target\classes all > ..\..\target\build.out 2>&1
+}}}
 * Linux
-cd ctakes-ytex/scripts/data
+{{{
+CTAKES_HOME=xxx
+export CTAKES_HOME
+cd ${CTAKES_HOME}/ctakes-ytex/scripts/data
 ant -Dconfig.local=../../target/classes all > ../../target/build.out 2>&1
-
+}}}
 == Testing ==
 
 YTEX is dependent upon a database which is set up by the ant script scripts\data\build.xml

Modified: ctakes/branches/ytex/ctakes-ytex/pom.xml
URL: http://svn.apache.org/viewvc/ctakes/branches/ytex/ctakes-ytex/pom.xml?rev=1555308&r1=1555307&r2=1555308&view=diff
==============================================================================
--- ctakes/branches/ytex/ctakes-ytex/pom.xml (original)
+++ ctakes/branches/ytex/ctakes-ytex/pom.xml Sat Jan  4 01:57:36 2014
@@ -279,6 +279,7 @@
 							<target>
 								<ant antfile="build-setup.xml" dir="scripts" target="templateToConfig">
 									<property name="config.generated.dir" value="${project.build.outputDirectory}"
/>
+									<property name="ctakes.home" value="${project.basedir}/.." />
 								</ant>
 							</target>
 						</configuration>
@@ -295,9 +296,11 @@
 								<ant antfile="build-setup.xml" dir="scripts"
 									target="generateTestYtexProperties">
 									<property name="config.local" value="${project.build.testOutputDirectory}" />
+									<property name="ctakes.home" value="${project.basedir}/.." />
 								</ant>
 								<ant antfile="build-setup.xml" dir="scripts" target="templateToConfig">
 									<property name="config.local" value="${project.build.testOutputDirectory}" />
+									<property name="ctakes.home" value="${project.basedir}/.." />
 								</ant>
 							</target>
 						</configuration>
@@ -315,11 +318,13 @@
 								<ant antfile="build-setup.xml" dir="scripts" target="deleteTestDb">
 									<property name="config.local" value="${project.build.testOutputDirectory}" />
 									<property name="db.type" value="${db.type}" />
+									<property name="ctakes.home" value="${project.basedir}/.." />
 								</ant>
 								<ant antfile="build.xml" dir="scripts/data" target="all">
 									<property name="config.local" value="${project.build.testOutputDirectory}" />
 									<property name="db.type" value="${db.type}" />
 									<property name="ytex.test" value="true" />
+									<property name="ctakes.home" value="${project.basedir}/.." />
 								</ant>
 							</target>
 						</configuration>



Mime
View raw message