org.apache.tools.ant.taskdefs
Class Replace

java.lang.Object
  |
  +--org.apache.tools.ant.Task
        |
        +--org.apache.tools.ant.taskdefs.MatchingTask
              |
              +--org.apache.tools.ant.taskdefs.Replace

public class Replace
extends MatchingTask

Replaces all the occurrences of the given string token with the given string value of the indicated files.

Author:
Stefano Mazzocchi stefano@apache.org

Inner classes inherited from class org.apache.tools.ant.taskdefs.MatchingTask
MatchingTask.NameEntry
 
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
excludeList, includeList, useDefaultExcludes
 
Fields inherited from class org.apache.tools.ant.Task
description, location, project, target
 
Constructor Summary
Replace()
           
 
Method Summary
 void execute()
          Do the execution.
 void setDir(java.lang.String dirName)
          Set the source files path when using matching tasks.
 void setFile(java.lang.String file)
          Set the source file.
 void setToken(java.lang.String token)
          Set the string token to replace.
 void setValue(java.lang.String value)
          Set the string value to use as token replacement.
 
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask
createExclude, createInclude, getDirectoryScanner, getProperty, setDefaultexcludes, setExcludes, setIgnore, setIncludes, setItems
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, init, setDescription, setLocation, setTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Replace

public Replace()
Method Detail

execute

public void execute()
             throws BuildException
Do the execution.
Overrides:
execute in class Task

setFile

public void setFile(java.lang.String file)
Set the source file.

setDir

public void setDir(java.lang.String dirName)
Set the source files path when using matching tasks.

setToken

public void setToken(java.lang.String token)
Set the string token to replace.

setValue

public void setValue(java.lang.String value)
Set the string value to use as token replacement.


Copyright © 2000 Apache Software Foundation. All Rights Reserved.