org.apache.tools.ant.taskdefs.optional.native2ascii
public abstract class DefaultNative2Ascii extends Object implements Native2AsciiAdapter
Since: Ant 1.6.3
Constructor Summary | |
---|---|
DefaultNative2Ascii() |
Method Summary | |
---|---|
protected void | addFiles(Commandline cmd, ProjectComponent log, File src, File dest)
Adds source and dest files to the command line.
|
boolean | convert(Native2Ascii args, File srcFile, File destFile)
Splits the task into setting up the command line switches
(delegated to {@link #setup setup}), adding the file names
(delegated to {@link #addFiles addFiles}) and running the tool
(delegated to {@link #run run}). |
protected abstract boolean | run(Commandline cmd, ProjectComponent log)
Executes the command.
|
protected void | setup(Commandline cmd, Native2Ascii args)
Sets up the initial command line.
|
This implementation adds them without any leading qualifiers, source first.
Parameters: cmd Command line to add to log provides access to Ant's logging system. src the source file dest the destination file
Parameters: cmd Command line to execute log provides access to Ant's logging system.
Returns: whether execution was successful
only the -encoding argument and nested arg elements get handled here.
Parameters: cmd Command line to add to args provides the user-setting and access to Ant's logging system.