org.apache.tools.ant.taskdefs.optional
public class Native2Ascii extends MatchingTask
Since: Ant 1.2
Constructor Summary | |
---|---|
Native2Ascii() No args constructor |
Method Summary | |
---|---|
void | add(FileNameMapper fileNameMapper)
A nested filenamemapper |
ImplementationSpecificArgument | createArg()
Adds an implementation specific command-line argument. |
Mapper | createMapper()
Defines the FileNameMapper to use (nested mapper element).
|
void | execute()
Execute the task
|
String[] | getCurrentArgs()
Returns the (implementation specific) settings given as nested
arg elements. |
String | getEncoding()
The value of the encoding attribute. |
boolean | getReverse()
The value of the reverse attribute. |
void | setDest(File destDir)
Set the destination directory to place converted files into.
|
void | setEncoding(String encoding)
Set the encoding to translate to/from.
|
void | setExt(String ext)
Set the extension which converted files should have.
|
void | setImplementation(String impl)
Choose the implementation for this particular task. |
void | setReverse(boolean reverse)
Flag the conversion to run in the reverse sense,
that is Ascii to Native encoding.
|
void | setSrc(File srcDir)
Set the source directory in which to find files to convert.
|
Parameters: fileNameMapper the mapper to add
Since: Ant 1.6.3
Returns: a ImplementationSpecificArgument to be configured
Since: Ant 1.6.3
Returns: the mapper to use for file name translations.
Throws: BuildException if more than one mapper is defined.
Throws: BuildException is there is a problem in the task execution.
Returns: the arguments.
Since: Ant 1.6.3
Returns: the encoding attribute.
Since: Ant 1.6.3
Returns: the reverse attribute.
Since: Ant 1.6.3
Parameters: destDir directory to place output file into.
Parameters: encoding String containing the name of the Native encoding to convert from or to.
Parameters: ext File extension to use for converted files.
Parameters: impl the name of the implemenation
Since: Ant 1.6.3
Parameters: reverse True if the conversion is to be reversed, otherwise false;
Parameters: srcDir directory to find input file in.