Class RenameExtensions
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.MatchingTask
org.apache.tools.ant.taskdefs.optional.RenameExtensions
- All Implemented Interfaces:
- Cloneable,- SelectorContainer
Deprecated.
since 1.5.x.
             Use <move> instead
- Version:
- 1.2
- 
Field SummaryFields inherited from class org.apache.tools.ant.taskdefs.MatchingTaskfilesetFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidexecute()Deprecated.Executes the task.voidsetFromExtension(String from) Deprecated.The string that files must end in to be renamedvoidsetReplace(boolean replace) Deprecated.store replace attribute - this determines whether the target file should be overwritten if presentvoidDeprecated.Set the source dir to find the files to be renamed.voidsetToExtension(String to) Deprecated.The string that renamed files will end with on completionMethods inherited from class org.apache.tools.ant.taskdefs.MatchingTaskadd, 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, XsetItemsMethods inherited from class org.apache.tools.ant.TaskbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation
- 
Constructor Details- 
RenameExtensionspublic RenameExtensions()Deprecated.Creates new RenameExtensions
 
- 
- 
Method Details- 
setFromExtensionDeprecated.The string that files must end in to be renamed- Parameters:
- from- the extension of files being renamed.
 
- 
setToExtensionDeprecated.The string that renamed files will end with on completion- Parameters:
- to- the extension of the renamed files.
 
- 
setReplacepublic void setReplace(boolean replace) Deprecated.store replace attribute - this determines whether the target file should be overwritten if present- Parameters:
- replace- if true overwrite any target files that exist.
 
- 
setSrcDirDeprecated.Set the source dir to find the files to be renamed.- Parameters:
- srcDir- the source directory.
 
- 
executeDeprecated.Executes the task.- Overrides:
- executein class- Task
- Throws:
- BuildException- is there is a problem in the task execution.
 
 
-