Class RewritePropertiesTask

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
net.shibboleth.idp.installer.ant.impl.RewritePropertiesTask
All Implemented Interfaces:
Cloneable

public class RewritePropertiesTask
extends org.apache.tools.ant.Task
A class to rename the property names in a property file, preserving the comments.
  • Field Summary

    Fields
    Modifier and Type Field Description
    private File inFile
    The input file.
    private File outFile
    The output file.
    private File propertyNameFile
    The names 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
  • Constructor Summary

    Constructors
    Constructor Description
    RewritePropertiesTask()  
  • Method Summary

    Modifier and Type Method Description
    void execute()
    void setInFile​(File what)
    Set the input file.
    void setOutFile​(File what)
    Set the output file.
    void setPropertyNameFile​(File what)
    Set the merge 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

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • inFile

      private File inFile
      The input file.
    • outFile

      private File outFile
      The output file.
    • propertyNameFile

      private File propertyNameFile
      The names file.
  • Constructor Details

    • RewritePropertiesTask

      public RewritePropertiesTask()
  • Method Details

    • 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
    • setPropertyNameFile

      public void setPropertyNameFile​(@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