org.apache.tools.ant.taskdefs.optional
Class Native2Ascii
java.lang.Object
|
+--org.apache.tools.ant.Task
|
+--org.apache.tools.ant.taskdefs.MatchingTask
|
+--org.apache.tools.ant.taskdefs.optional.Native2Ascii
- public class Native2Ascii
- extends MatchingTask
Convert files from native encodings to ascii.
- Author:
- Drew Sudell
Method Summary |
void |
execute()
Called by the project to let the task do it's work. |
void |
setDest(java.io.File destDir)
Set the destination dirctory to place converted files into. |
void |
setEncoding(java.lang.String encoding)
Set the encoding to translate to/from. |
void |
setExt(java.lang.String ext)
Set the extension which converted files should have. |
void |
setReverse(boolean reverse)
Flag the conversion to run in the reverse sense,
that is Ascii to Native encoding. |
void |
setSrc(java.io.File srcDir)
Set the source directory in which to find files to convert. |
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
createExclude, createInclude, createPatternSet, getDirectoryScanner, setDefaultexcludes, setExcludes, setExcludesfile, setIncludes, setIncludesfile, XsetIgnore, XsetItems |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getProject, getRuntimeConfigurableWrapper, getTaskName, init, log, log, maybeConfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Native2Ascii
public Native2Ascii()
setReverse
public void setReverse(boolean reverse)
- Flag the conversion to run in the reverse sense,
that is Ascii to Native encoding.
- Parameters:
reverse
- True if the conversion is to be reversed,
otherwise false;
setEncoding
public void setEncoding(java.lang.String encoding)
- Set the encoding to translate to/from.
If unset, the default encoding for the JVM is used.
- Parameters:
encoding
- String containing the name of the Native
encoding to convert from or to.
setSrc
public void setSrc(java.io.File srcDir)
- Set the source directory in which to find files to convert.
- Parameters:
srcDir
- Direcrory to find input file in.
setDest
public void setDest(java.io.File destDir)
- Set the destination dirctory to place converted files into.
- Parameters:
destDir
- directory to place output file into.
setExt
public void setExt(java.lang.String ext)
- Set the extension which converted files should have.
If unset, files will not be renamed.
- Parameters:
ext
- File extension to use for converted files.
execute
public void execute()
throws BuildException
- Description copied from class:
Task
- Called by the project to let the task do it's work. Normally it does nothing.
- Overrides:
execute
in class Task
- Following copied from class:
org.apache.tools.ant.Task
- Throws:
BuildException
- if someting goes wrong with the build
Copyright © 2000 Apache Software Foundation. All Rights Reserved.