Class RetrieveMetadataTask


  • public class RetrieveMetadataTask
    extends org.apache.tools.ant.Task
    Retrieve the model metadata from a database
    Author:
    Mark Woodbridge
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String database  
      protected java.io.File destDir  
      protected java.lang.String osname  
      • 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()
      void setDestDir​(java.io.File destDir)
      Sets the destination directory
      void setKeyToRetreive​(java.lang.String keyToRetrieve)
      Set a key to retrieve from database.
      void setOsName​(java.lang.String osname)
      Sets the os alias
      • 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

      • destDir

        protected java.io.File destDir
      • database

        protected java.lang.String database
      • osname

        protected java.lang.String osname
    • Constructor Detail

      • RetrieveMetadataTask

        public RetrieveMetadataTask()
    • Method Detail

      • setDestDir

        public void setDestDir​(java.io.File destDir)
        Sets the destination directory
        Parameters:
        destDir - the destination directory
      • setOsName

        public void setOsName​(java.lang.String osname)
        Sets the os alias
        Parameters:
        osname - the os alias
      • setKeyToRetreive

        public void setKeyToRetreive​(java.lang.String keyToRetrieve)
        Set a key to retrieve from database. If not set, retrieve all property files that were stored when the database was created.
        Parameters:
        keyToRetrieve - the key
      • execute

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