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
 void addFileset(org.apache.tools.ant.types.FileSet set)
          This method allows more than one Fileset per store task!
 void execute()
           
 void setCreatecollection(boolean create)
           
 void setCreatesubcollections(boolean create)
           
 void setDefaultMimeType(String mimeType)
           
 void setForceMimeType(String mimeType)
           
 void setMimeTypesFile(File file)
           
 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

addFileset

public void addFileset(org.apache.tools.ant.types.FileSet set)
This method allows more than one Fileset per store task!


setSrcFile

public void setSrcFile(File file)

setTargetFile

public void setTargetFile(String name)

setCreatecollection

public void setCreatecollection(boolean create)

setCreatesubcollections

public void setCreatesubcollections(boolean create)

setMimeTypesFile

public void setMimeTypesFile(File file)

setType

public void setType(String type)

setDefaultMimeType

public void setDefaultMimeType(String mimeType)

setForceMimeType

public void setForceMimeType(String mimeType)


Copyright (C) Wolfgang Meier. All rights reserved.