ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vjapa...@apache.org
Subject svn commit: r1641395 - /ctakes/trunk/ctakes-ytex/scripts/build-setup.xml
Date Mon, 24 Nov 2014 14:03:41 GMT
Author: vjapache
Date: Mon Nov 24 14:03:41 2014
New Revision: 1641395

URL: http://svn.apache.org/r1641395
Log:
extract templates from ctakes-ytex-res 

Modified:
    ctakes/trunk/ctakes-ytex/scripts/build-setup.xml

Modified: ctakes/trunk/ctakes-ytex/scripts/build-setup.xml
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-ytex/scripts/build-setup.xml?rev=1641395&r1=1641394&r2=1641395&view=diff
==============================================================================
--- ctakes/trunk/ctakes-ytex/scripts/build-setup.xml (original)
+++ ctakes/trunk/ctakes-ytex/scripts/build-setup.xml Mon Nov 24 14:03:41 2014
@@ -72,6 +72,19 @@ Call with option -projecthelp for more i
 		<property name="umls.schema" value="${db.schema}" />
 		<mkdir dir="${config.generated.dir}" />
 	</target>
+	<target name="templateToConfig.extractTemplates" description="extractTemplateFiles" unless="ctakes.dev.mode">
+		<pathconvert property="res.jar" pathsep="${line.separator}">
+            <fileset dir="${ctakes.home}/lib">
+                <include name="ctakes-ytex-res-*.jar"/>
+            </fileset>
+        </pathconvert>
+		<echo>unpacking ytex templates from ${res.jar} to ${config.source.dir}</echo>
+		<unzip src="${res.jar}" dest="${config.source.dir}">
+			<patternset>
+				<include name="org/apache/ctakes/ytex/**/*.template.xml"/>
+			</patternset>
+		</unzip>
+	</target>
 	<target name="templateToConfig.updateConfig" depends="templateToConfig.init" description="update
config files">
 		<echo>config.source.dir = ${config.source.dir}</echo>
 		<echo>config.generated.dir = ${config.generated.dir}</echo>
@@ -130,7 +143,7 @@ Call with option -projecthelp for more i
 	<target name="deleteTestDb" description="delete the test hsql databse">
 		<delete dir="${test.hsqldb.dir}" quiet="true" />
 	</target>
-	<target name="templateToConfig" depends="templateToConfig.init,templateToConfig.updateConfig"
description="generate config files from templates using values specified in ytex.properties">
+	<target name="templateToConfig" depends="templateToConfig.init,templateToConfig.extractTemplates,templateToConfig.updateConfig"
description="generate config files from templates using values specified in ytex.properties">
 	</target>
 	<target name="test.setup" description="setup properties and database for unit tests"
depends="generateTestYtexProperties,templateToConfig,deleteTestDb">
 		<ant dir="data" target="all" inheritAll="true"/>



Mime
View raw message