Class MergePropertiesTask

  • All Implemented Interfaces:
    Cloneable

    public class MergePropertiesTask
    extends org.apache.tools.ant.Task
    A class to merge a property file into another property file, preserving the comments.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private File inFile
      The input file.
      private File mergeFile
      The merge file.
      private File outFile
      The output file.
      • Fields inherited from class org.apache.tools.ant.Task

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

        description, location, project
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()
      void setInFile​(File what)
      Set the input file.
      void setMergeFile​(File what)
      Set the merge file.
      void setOutFile​(File what)
      Set the output file.
      • Methods inherited from class org.apache.tools.ant.Task

        bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, 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
    • Field Detail

      • inFile

        private File inFile
        The input file.
      • outFile

        private File outFile
        The output file.
      • mergeFile

        private File mergeFile
        The merge file.
    • Constructor Detail

      • MergePropertiesTask

        public MergePropertiesTask()
    • Method Detail

      • setInFile

        public void setInFile​(@Nonnull
                              File what)
        Set the input file.
        Parameters:
        what - what to set
      • setOutFile

        public void setOutFile​(@Nonnull
                               File what)
        Set the output file.
        Parameters:
        what - what to set
      • setMergeFile

        public void setMergeFile​(@Nonnull
                                 File what)
        Set the merge file.
        Parameters:
        what - what to set
      • execute

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