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
FieldsModifier and TypeFieldDescriptionprivate FileThe input file.private FileThe output file.private FileThe names file.Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()voidSet the input file.voidsetOutFile(File what) Set the output file.voidsetPropertyNameFile(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, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Field Details
-
inFile
The input file. -
outFile
The output file. -
propertyNameFile
The names file.
-
-
Constructor Details
-
RewritePropertiesTask
public RewritePropertiesTask()
-
-
Method Details
-
setInFile
Set the input file.- Parameters:
what- what to set
-
setOutFile
Set the output file.- Parameters:
what- what to set
-
setPropertyNameFile
Set the merge file.- Parameters:
what- what to set
-
execute
public void execute()- Overrides:
executein classorg.apache.tools.ant.Task
-