org.mycore.buildtools.anttasks
Class MCRMergePropertiesTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.mycore.buildtools.anttasks.MCRMergePropertiesTask
All Implemented Interfaces:
Cloneable

public class MCRMergePropertiesTask
extends org.apache.tools.ant.Task

Ant task, that can be used to merges one properties file into another. New Properties will be added, existing properties overwritten.

Version:
$Revision: 13085 $ $Date: 2008-02-06 18:27:24 +0100 (Mi, 06 Feb 2008) $
Author:
Robert Stephan

Field Summary
 
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
MCRMergePropertiesTask()
           
 
Method Summary
 void execute()
           
static void main(String[] args)
          simple testcase for class
 void setBasefile(String f)
          sets the base properties file
 void setDeltafile(String f)
          sets the delta properties file, containing the new properties, which will be added or used as a replacement
 
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
 

Constructor Detail

MCRMergePropertiesTask

public MCRMergePropertiesTask()
Method Detail

setBasefile

public void setBasefile(String f)
sets the base properties file

Parameters:
f - the base properties file

setDeltafile

public void setDeltafile(String f)
sets the delta properties file, containing the new properties, which will be added or used as a replacement

Parameters:
f - the delta properties file

execute

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

main

public static void main(String[] args)
simple testcase for class

Parameters:
args - unsed default arguments for main method