org.apache.tools.ant.taskdefs.optional
public class RenameExtensions extends MatchingTask
Deprecated: Use <move> instead
Version: 1.2
Constructor Summary | |
---|---|
RenameExtensions() Creates new RenameExtensions |
Method Summary | |
---|---|
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
|
Throws: BuildException is there is a problem in the task execution.
Parameters: from the extension of files being renamed.
Parameters: replace if true overwrite any target files that exist.
Parameters: srcDir the source directory.
Parameters: to the extension of the renamed files.