Date: 2004-02-08T08:13:16 Editor: 213.122.16.117 <> Wiki: Xindice Wiki Page: AntXindice URL: http://wiki.apache.org/xindice/AntXindice
no comment Change Log: ------------------------------------------------------------------------------ @@ -1,8 +1,26 @@ There are a few methods of using Ant with Xindice; -XindiceDeploymentTask += XindiceDeploymentTask = +''[EMAIL PROTECTED]'' + +Fortunately Xindice ships with its own Ant task called DeploymentTask. To use it in your ant build scripts you will first need to declare a TaskDef statement. + +1) place the following before your target definitions + + <taskdef name="xindice" classname="org.apache.xindice.tools.DeploymentTask"/> + +2) here are some examples of using the Ant task + +export +<xindice home="E:\java\xindice" Collection="xmldb:xindice://127.0.0.1:8080/db/log/" +Activity="export" Path="c:\test\"/> + +import +<xindice home="E:\java\xindice" Collection="xmldb:xindice://127.0.0.1:8080/db/somecollection/" +Activity="import" Path="c:\test\"/> + +Check out the commands.xml file contained in /config directory, which lists all the available commands for this task. -XindicewithJavaTask = Xindice Ant Task v.1alpha =