org.exist.ant
Class XMLDBStoreTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.exist.ant.AbstractXMLDBTask
              extended by org.exist.ant.XMLDBStoreTask
All Implemented Interfaces:
Cloneable

public class XMLDBStoreTask
extends AbstractXMLDBTask

An Ant task to store a set of files into eXist.

The task expects a nested fileset element. The files selected by the fileset will be stored into the database.

New collections can be created as needed. It is also possible to specify that files relative to the base directory should be stored into subcollections of the root collection, where the relative path of the directory corresponds to the relative path of the subcollections.

Author:
wolf

slightly modified by:, peter.klotz@blue-elephant-systems.com


Constructor Summary
XMLDBStoreTask()
           
 
Method Summary
 org.apache.tools.ant.types.FileSet createFileSet()
           
 void execute()
           
 void setCreatecollection(boolean create)
           
 void setCreatesubcollections(boolean create)
           
 void setSrcFile(File file)
           
 void setTargetFile(String name)
           
 void setType(String type)
           
 
Methods inherited from class org.exist.ant.AbstractXMLDBTask
setConfiguration, setDriver, setFailonerror, setInitdb, setPassword, setUri, setUser
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, init, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLDBStoreTask

public XMLDBStoreTask()
Method Detail

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException

setSrcFile

public void setSrcFile(File file)

setTargetFile

public void setTargetFile(String name)

createFileSet

public org.apache.tools.ant.types.FileSet createFileSet()

setCreatecollection

public void setCreatecollection(boolean create)

setCreatesubcollections

public void setCreatesubcollections(boolean create)

setType

public void setType(String type)


Copyright (C) Wolfgang Meier. All rights reserved.