| java.lang.Object org.apache.tools.ant.taskdefs.optional.native2ascii.DefaultNative2Ascii
All known Subclasses: org.apache.tools.ant.taskdefs.optional.native2ascii.SunNative2Ascii, org.apache.tools.ant.taskdefs.optional.native2ascii.KaffeNative2Ascii,
DefaultNative2Ascii | abstract public class DefaultNative2Ascii implements Native2AsciiAdapter(Code) | | encapsulates the handling common to diffent Native2Asciiadapter
implementations.
since: Ant 1.6.3 |
Method Summary | |
protected void | addFiles(Commandline cmd, ProjectComponent log, File src, File dest) Adds source and dest files to the command line. | final public boolean | convert(Native2Ascii args, File srcFile, File destFile) Splits the task into setting up the command line switches
Parameters: args - the native 2 ascii arguments. Parameters: srcFile - the source file. Parameters: destFile - the destination file. | abstract protected boolean | run(Commandline cmd, ProjectComponent log) Executes the command.
Parameters: cmd - Command line to execute Parameters: log - provides access to Ant's logging system. | protected void | setup(Commandline cmd, Native2Ascii args) Sets up the initial command line. |
DefaultNative2Ascii | public DefaultNative2Ascii()(Code) | | No-arg constructor.
|
addFiles | protected void addFiles(Commandline cmd, ProjectComponent log, File src, File dest) throws BuildException(Code) | | Adds source and dest files to the command line.
This implementation adds them without any leading
qualifiers, source first.
Parameters: cmd - Command line to add to Parameters: log - provides access to Ant's logging system. Parameters: src - the source file Parameters: dest - the destination file throws: BuildException - if there was a problem. |
setup | protected void setup(Commandline cmd, Native2Ascii args) throws BuildException(Code) | | Sets up the initial command line.
only the -encoding argument and nested arg elements get
handled here.
Parameters: cmd - Command line to add to Parameters: args - provides the user-setting and access to Ant'slogging system. throws: BuildException - if there was a problem. |
|
|