org.ow2.jonas.tools.configurator.impl
Class FileReplacerHelper

java.lang.Object
  extended by org.ow2.jonas.tools.configurator.impl.FileReplacerHelper
Direct Known Subclasses:
Jonas4, Jonas5, Jonas53

public class FileReplacerHelper
extends Object

Helps doing replacements in files

Author:
S. Ali Tokmen

Constructor Summary
FileReplacerHelper()
           
 
Method Summary
protected  void addReplacement(String file, String from, String to)
          Adds a replacement task.
protected  void doReplacements(File parent)
          Does all the replacement tasks as added in addReplacement(String, String, String).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileReplacerHelper

public FileReplacerHelper()
Method Detail

addReplacement

protected void addReplacement(String file,
                              String from,
                              String to)
Adds a replacement task.

Parameters:
file - File in which to replace.
from - Original string.
to - String to replace with.

doReplacements

protected void doReplacements(File parent)
Does all the replacement tasks as added in addReplacement(String, String, String).

Parameters:
parent - Parent folder in which to look for all files.


Copyright © 2012 OW2 Consortium. All Rights Reserved.