From: Peter K. <pet...@bl...> - 2005-05-18 08:28:20
|
Hi, TM4j has already today one file-oriented topicmap merge task but I needed some more tasks especially some that manipulate topicmaps in the provider. I would like to donate this back the TM4J project as more people might be interested in these. Would somebody with committer rights please have a look at the tasks and integrate them into the CVS? All tasks work the same, a dburl must be specified for either a Ozone or Hibernate persistence backend as all tasks work on a provider not in memory. Topicmaps are referenced by a uri attribute. The following tasks are included: <antlib> <typedef name="create" classname="org.tm4j.ant.CreateTopicMap"/> <typedef name="exist" classname="org.tm4j.ant.ExistTopicMap"/> <typedef name="export" classname="org.tm4j.ant.ExportTopicMap"/> <typedef name="load" classname="org.tm4j.ant.LoadTopicMap"/> <typedef name="merge" classname="org.tm4j.ant.MergeTopicMap"/> <typedef name="remove" classname="org.tm4j.ant.RemoveTopicMap"/> <typedef name="list" classname="org.tm4j.ant.ListTopicMap"/> <typedef name="topic" classname="org.tm4j.ant.CreateTopic"/> <typedef name="association" classname="org.tm4j.ant.CreateAssociation"/> <typedef name="occurrence" classname="org.tm4j.ant.CreateOccurrence"/> <typedef name="rmtopic" classname="org.tm4j.ant.RemoveTopic"/> </antlib> I use the technique of antlib and namespaces as one can see in the included test build.xml. <?xml version="1.0"?> <project name="TM4J" default="usage" xmlns:tm="http://tm4j.org/ant"> ^^^^^^^^^^^^ <description> test case for tm4j ant tasks </description> ... <typedef resource="org/tm4j/ant/antlib.xml" uri="http://tm4j.org/ant"> ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ <classpath> ... </classpath> </typedef> I put the tasks into the package org.tm4j.ant not .taskdefs in order to keep them separate from the still needed file-oriented merge task, but this can be changed of course. Regards, Peter -- Peter Klotz blue elephant systems GmbH Tel.: +49 711 451017-570 Wollgrasweg 49 Fax.: +49 711 451017-573 D-70599 Stuttgart Email: pet...@bl... WWW: www.blue-elephant-systems.com Sitz : Stuttgart, AG Stuttgart, HRB 24106 Geschäftsführer: Joachim Hörnle, Thomas Gentsch, Holger Dietrich |