Package org.intermine.web.task
Class DumpDefaultTemplatesTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.intermine.web.task.DumpDefaultTemplatesTask
-
public class DumpDefaultTemplatesTask extends org.apache.tools.ant.Task
Dump templates and configuration tags.- Author:
- Thomas Riley
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
fileName
-
Constructor Summary
Constructors Constructor Description DumpDefaultTemplatesTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
Write templates and tags to a file.void
setFileName(java.lang.String fileName)
Set the name of the file to write to.void
setOSAlias(java.lang.String osAlias)
Set the alias of the main object store.void
setUsername(java.lang.String user)
Set the account name to laod template to.void
setUserProfileAlias(java.lang.String userProfileAlias)
Set the alias of the userprofile object store.protected void
write(javax.xml.stream.XMLStreamWriter writer, Profile superProfile, ObjectStore os)
Write template-queries and tags elements.-
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Method Detail
-
setUsername
public void setUsername(java.lang.String user)
Set the account name to laod template to.- Parameters:
user
- username to load templates into
-
setFileName
public void setFileName(java.lang.String fileName)
Set the name of the file to write to.- Parameters:
fileName
- the file name
-
setOSAlias
public void setOSAlias(java.lang.String osAlias)
Set the alias of the main object store.- Parameters:
osAlias
- the object store alias
-
setUserProfileAlias
public void setUserProfileAlias(java.lang.String userProfileAlias)
Set the alias of the userprofile object store.- Parameters:
userProfileAlias
- the object store alias of the userprofile database
-
execute
public void execute()
Write templates and tags to a file.- Overrides:
execute
in classorg.apache.tools.ant.Task
-
write
protected void write(javax.xml.stream.XMLStreamWriter writer, Profile superProfile, ObjectStore os) throws java.lang.Exception
Write template-queries and tags elements.- Parameters:
writer
- xml writer to write tosuperProfile
- superuser profileos
- objectstore- Throws:
java.lang.Exception
- if something goes wrong
-
-