org.ow2.jonas.ant.jonasbase
Class JReplace

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.MatchingTask
              extended by org.ow2.jonas.ant.jonasbase.Replace
                  extended by org.ow2.jonas.ant.jonasbase.JReplace
All Implemented Interfaces:
org.apache.tools.ant.types.selectors.SelectorContainer, BaseTaskItf

public class JReplace
extends Replace
implements BaseTaskItf

Defines common replacement methods.

Author:
Florent Benoit, Shenheng Liang

Nested Class Summary
 
Nested classes/interfaces inherited from class org.ow2.jonas.ant.jonasbase.Replace
Replace.NestedString, Replace.Replacefilter
 
Field Summary
 
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
fileset
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
JReplace()
           
 
Method Summary
protected  File getJonasRoot()
           
 String getLogInfo()
          Gets logger info (to be displayed).
 void setConfigurationFile(String configurationFile)
          Sets the configuration file.
 void setDestDir(File destDir)
           
 void setDestFile(File destFile)
           
 void setJonasRoot(File jonasRoot)
           
 void setLogInfo(String logInfo)
          Set the info to be displayed by the logger.
 
Methods inherited from class org.ow2.jonas.ant.jonasbase.Replace
createReplacefilter, createReplaceToken, createReplaceValue, execute, getProperties, setDir, setEncoding, setFile, setPropertyFile, setReplaceFilterFile, setSummary, setToken, setValue, validateAttributes, validateReplacefilters
 
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ow2.jonas.ant.jonasbase.BaseTaskItf
execute
 

Constructor Detail

JReplace

public JReplace()
Method Detail

setConfigurationFile

public void setConfigurationFile(String configurationFile)
Sets the configuration file.

Specified by:
setConfigurationFile in interface BaseTaskItf
Parameters:
configurationFile - The configurationFile to set.

setDestDir

public void setDestDir(File destDir)
Specified by:
setDestDir in interface BaseTaskItf
Parameters:
destDir - The destDir to set.

setDestFile

public void setDestFile(File destFile)
Parameters:
destFile - The destination file to set.

getLogInfo

public String getLogInfo()
Gets logger info (to be displayed).

Specified by:
getLogInfo in interface BaseTaskItf
Returns:
logger info
See Also:
BaseTaskItf.getLogInfo()

setLogInfo

public void setLogInfo(String logInfo)
Set the info to be displayed by the logger.

Specified by:
setLogInfo in interface BaseTaskItf
Parameters:
logInfo - information to be displayed
See Also:
BaseTaskItf.setLogInfo(java.lang.String)

setJonasRoot

public void setJonasRoot(File jonasRoot)
Specified by:
setJonasRoot in interface BaseTaskItf
Parameters:
jonasRoot - The jonasRoot directory.

getJonasRoot

protected File getJonasRoot()
Returns:
the jonasRoot.


Copyright © 2010 OW2 Consortium. All Rights Reserved.