|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.Native2Ascii
Converts files from native encodings to ASCII.
Field Summary |
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
fileset |
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
Native2Ascii()
|
Method Summary | |
Mapper |
createMapper()
Defines the FileNameMapper to use (nested mapper element). |
void |
execute()
Execute the task |
void |
setDest(java.io.File destDir)
Set the destination directory 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 |
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, XsetIgnore, XsetItems |
Methods inherited from class org.apache.tools.ant.Task |
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 |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Native2Ascii()
Method Detail |
public void setReverse(boolean reverse)
reverse
- True if the conversion is to be reversed,
otherwise false;public void setEncoding(java.lang.String encoding)
encoding
- String containing the name of the Native
encoding to convert from or to.public void setSrc(java.io.File srcDir)
srcDir
- directory to find input file in.public void setDest(java.io.File destDir)
destDir
- directory to place output file into.public void setExt(java.lang.String ext)
ext
- File extension to use for converted files.public Mapper createMapper() throws BuildException
BuildException
- if more than one mapper is defined.public void execute() throws BuildException
execute
in class Task
BuildException
- is there is a problem in the task execution.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |