Class 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  
      • Fields inherited from class org.apache.tools.ant.Task

        description, location, target, taskName, taskType, wrapper
      • Fields inherited from class org.apache.tools.ant.ProjectComponent

        project
    • 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
      • Methods inherited from class org.apache.tools.ant.ProjectComponent

        getProject, setProject
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • fileName

        protected java.lang.String fileName
    • Constructor Detail

      • DumpDefaultTemplatesTask

        public DumpDefaultTemplatesTask()
    • 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 class org.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 to
        superProfile - superuser profile
        os - objectstore
        Throws:
        java.lang.Exception - if something goes wrong