org.exist.ant
Class XMLDBStoreTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.exist.ant.AbstractXMLDBTask
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
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 |
XMLDBStoreTask
public XMLDBStoreTask()
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.