public class RenameExtensions extends MatchingTask
fileset
description, location, project
Constructor and Description |
---|
RenameExtensions()
Deprecated.
Creates new RenameExtensions
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Deprecated.
Executes the task.
|
void |
setFromExtension(java.lang.String from)
Deprecated.
The string that files must end in to be renamed
|
void |
setReplace(boolean replace)
Deprecated.
store replace attribute - this determines whether the target file
should be overwritten if present
|
void |
setSrcDir(java.io.File srcDir)
Deprecated.
Set the source dir to find the files to be renamed.
|
void |
setToExtension(java.lang.String to)
Deprecated.
The string that renamed files will end with on
completion
|
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
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
clone, getDescription, getLocation, getProject, setDescription, setLocation
public RenameExtensions()
public void setFromExtension(java.lang.String from)
from
- the extension of files being renamed.public void setToExtension(java.lang.String to)
to
- the extension of the renamed files.public void setReplace(boolean replace)
replace
- if true overwrite any target files that exist.public void setSrcDir(java.io.File srcDir)
srcDir
- the source directory.public void execute() throws BuildException
execute
in class Task
BuildException
- is there is a problem in the task execution.