org.apache.tools.ant.taskdefs.optional.native2asciiClass SunNative2Ascii
- java.lang.Object
- org.apache.tools.ant.taskdefs.optional.native2ascii.DefaultNative2Ascii
- org.apache.tools.ant.taskdefs.optional.native2ascii.SunNative2Ascii
- All Implemented Interfaces:
- Native2AsciiAdapter
public final class SunNative2Ascii extends DefaultNative2AsciiAdapter to sun.tools.native2ascii.Main.
- Since:
- Ant 1.6.3
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
IMPLEMENTATION_NAME
Identifies this adapter.
Constructor Summary
Constructors Constructor and Description SunNative2Ascii()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description protected boolean
run(Commandline cmd, ProjectComponent log)
Executes the command.protected void
setup(Commandline cmd, Native2Ascii args)
Sets up the initial command line.
Methods inherited from class org.apache.tools.ant.taskdefs.optional.native2ascii.DefaultNative2Ascii
addFiles, convert
Field Detail
IMPLEMENTATION_NAME
public static final java.lang.String IMPLEMENTATION_NAMEIdentifies this adapter.
- See Also:
- Constant Field Values
Method Detail
setup
protected void setup(Commandline cmd, Native2Ascii args) throws BuildExceptionSets up the initial command line.only the -encoding argument and nested arg elements get handled here.
- Overrides:
setup
in classDefaultNative2Ascii
- Parameters:
cmd
- Command line to add toargs
- provides the user-setting and access to Ant's logging system.- Throws:
BuildException
- if there was a problem.
run
protected boolean run(Commandline cmd, ProjectComponent log) throws BuildExceptionExecutes the command.
- Specified by:
run
in classDefaultNative2Ascii
- Parameters:
cmd
- Command line to executelog
- provides access to Ant's logging system.- Returns:
- whether execution was successful
- Throws:
BuildException
- if there was a problem.