|
From: <va...@us...> - 2011-06-28 10:55:07
|
Revision: 14090
http://gate.svn.sourceforge.net/gate/?rev=14090&view=rev
Author: valyt
Date: 2011-06-28 10:55:01 +0000 (Tue, 28 Jun 2011)
Log Message:
-----------
Generate the creole.xml content from ANT.
Modified Paths:
--------------
mimir/trunk/plugins/sesame/build.xml
Added Paths:
-----------
mimir/trunk/plugins/sesame/creole.xml.template
Removed Paths:
-------------
mimir/trunk/plugins/sesame/creole.xml
Modified: mimir/trunk/plugins/sesame/build.xml
===================================================================
--- mimir/trunk/plugins/sesame/build.xml 2011-06-28 10:53:03 UTC (rev 14089)
+++ mimir/trunk/plugins/sesame/build.xml 2011-06-28 10:55:01 UTC (rev 14090)
@@ -23,7 +23,8 @@
<property name="sesame.dir" location=""/>
- <property name="jar.file" location="${app.name}-${app.version}.jar" />
+ <property name="jar.name" value="${app.name}-${app.version}.jar" />
+ <property name="jar.file" location="${jar.name}" />
<path id="compile.classpath">
<path refid="core-libs" />
<path refid="local-libs" />
@@ -48,15 +49,24 @@
classpathref="compile.classpath" />
</target>
- <target name="jar" depends="clean, compile">
+ <target name="jar" depends="clean, compile, creole.xml">
<jar file="${jar.file}" basedir="${classes.dir}" update="false">
<fileset dir="${sesame.dir}" includes="*.ttl" />
<manifest>
<attribute name="Class-Path" value="${manifest.runtime.classpath}" />
</manifest>
</jar>
- </target>
+ </target>
+ <target name="creole.xml">
+ <copy file="creole.xml.template" tofile="creole.xml">
+ <filterset>
+ <filter token="jar" value="${jar.name}" />
+ </filterset>
+ </copy>
+ </target>
+
+
<target name="distro" depends="jar, javadoc" />
<!-- Docs -->
Deleted: mimir/trunk/plugins/sesame/creole.xml
===================================================================
--- mimir/trunk/plugins/sesame/creole.xml 2011-06-28 10:53:03 UTC (rev 14089)
+++ mimir/trunk/plugins/sesame/creole.xml 2011-06-28 10:55:01 UTC (rev 14090)
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!-- This plugin does not provide any GATE resources, but uses the CREOLE
-mechanism to supply a set of jar files to be added to the classpath of the caller.-->
-<CREOLE-DIRECTORY>
- <!-- Most of the dependencies are referenced by the manifest Class-Path entry
- in the plugin JAR -->
- <JAR SCAN="true">mimir-plugin-sesame-3.2.1-snapshot.jar</JAR>
-
- <!-- This plugin requires BigOWLIM 3.5, you need to obtain a suitably
- licenced copy of this from Ontotext and place it in the owlim directory -->
- <JAR>owlim/big-owlim-3.5.jar</JAR>
-</CREOLE-DIRECTORY>
Copied: mimir/trunk/plugins/sesame/creole.xml.template (from rev 14078, mimir/trunk/plugins/sesame/creole.xml)
===================================================================
--- mimir/trunk/plugins/sesame/creole.xml.template (rev 0)
+++ mimir/trunk/plugins/sesame/creole.xml.template 2011-06-28 10:55:01 UTC (rev 14090)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!-- This plugin does not provide any GATE resources, but uses the CREOLE
+mechanism to supply a set of jar files to be added to the classpath of the caller.-->
+<CREOLE-DIRECTORY>
+ <!-- Most of the dependencies are referenced by the manifest Class-Path entry
+ in the plugin JAR -->
+ <JAR SCAN="true">@jar@</JAR>
+
+ <!-- This plugin requires BigOWLIM 3.5, you need to obtain a suitably
+ licenced copy of this from Ontotext and place it in the owlim directory -->
+ <JAR>owlim/big-owlim-3.5.jar</JAR>
+</CREOLE-DIRECTORY>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|