org.apache.tools.ant.taskdefs.optional
Class RenameExtensions
- SelectorContainer
public class RenameExtensions
void | execute()- Executes the task.
|
void | setFromExtension(String from)- The string that files must end in to be renamed
|
void | setReplace(boolean replace)- store replace attribute - this determines whether the target file
should be overwritten if present
|
void | setSrcDir(File srcDir)- Set the source dir to find the files to be renamed.
|
void | setToExtension(String to)- The string that renamed files will end with on
completion
|
XsetIgnore, XsetItems, 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 |
execute, 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 |
RenameExtensions
public RenameExtensions()
Creates new RenameExtensions
setFromExtension
public void setFromExtension(String from)
The string that files must end in to be renamed
from - the extension of files being renamed.
setReplace
public void setReplace(boolean replace)
store replace attribute - this determines whether the target file
should be overwritten if present
replace - if true overwrite any target files that exist.
setSrcDir
public void setSrcDir(File srcDir)
Set the source dir to find the files to be renamed.
srcDir - the source directory.
setToExtension
public void setToExtension(String to)
The string that renamed files will end with on
completion
to - the extension of the renamed files.
Copyright B) 2000-2006 Apache Software Foundation. All Rights Reserved.