org.mycore.buildtools.anttasks
Class MCRMergeSearchfieldsXMLTask

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

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

Ant task, that can be used to merges one searchfield.xml file into another. New indexes will be added. It depends on the boolean flag overwrite, if the paths and object types for existing indexes will be overwritten or concatenated .

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
MCRMergeSearchfieldsXMLTask()
           
 
Method Summary
 void execute()
           
static void main(String[] args)
          simple test case for the class
 void setBasefile(String f)
          set the base searchfield.xml file
 void setDeltafile(String f)
          set the delta searchfield.xml file
 void setOverwrite(boolean b)
          sets the overwrite flag when set exisiting object type and path values will be overwritten
 
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

MCRMergeSearchfieldsXMLTask

public MCRMergeSearchfieldsXMLTask()
Method Detail

setBasefile

public void setBasefile(String f)
set the base searchfield.xml file

Parameters:
f - the base searchfield.xml file

setDeltafile

public void setDeltafile(String f)
set the delta searchfield.xml file

Parameters:
f - the delta searchfield.xml file

setOverwrite

public void setOverwrite(boolean b)
sets the overwrite flag when set exisiting object type and path values will be overwritten

Parameters:
b -

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 test case for the class

Parameters:
args - the default arguments for main method (unused)