Class MergePropertiesTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
net.shibboleth.idp.installer.ant.impl.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
FieldsModifier and TypeFieldDescriptionprivate File
The input file.private File
The merge file.private File
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
void
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 Details
-
inFile
The input file. -
outFile
The output file. -
mergeFile
The merge file.
-
-
Constructor Details
-
MergePropertiesTask
public MergePropertiesTask()
-
-
Method Details
-
setInFile
Set the input file.- Parameters:
what
- what to set
-
setOutFile
Set the output file.- Parameters:
what
- what to set
-
setMergeFile
Set the merge file.- Parameters:
what
- what to set
-
execute
public void execute()- Overrides:
execute
in classorg.apache.tools.ant.Task
-