Top Description Fields Constructors Methods
org.apache.tools.ant.taskdefs.optional.native2ascii

public final Class SunNative2Ascii

extends DefaultNative2Ascii
Class Inheritance
Imports
java.lang.reflect.Method, org.apache.tools.ant.BuildException, .ProjectComponent, org.apache.tools.ant.taskdefs.optional.Native2Ascii, org.apache.tools.ant.types.Commandline

Adapter to sun.tools.native2ascii.Main.
Since
Ant 1.6.3

Field Summary

Modifier and TypeField and Description
public static final String
IMPLEMENTATION_NAME

Identifies this adapter.

private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected boolean
run(Commandline
Command line to execute
cmd
,
ProjectComponent
provides access to Ant's logging system.
log
)

Implements abstract org.apache.tools.ant.taskdefs.optional.native2ascii.DefaultNative2Ascii.run.

Executes the command.
protected void
setup(Commandline
Command line to add to
cmd
,
Native2Ascii
provides the user-setting and access to Ant's logging system.
args
)

Overrides org.apache.tools.ant.taskdefs.optional.native2ascii.DefaultNative2Ascii.setup.

Sets up the initial command line.
Inherited from org.apache.tools.ant.taskdefs.optional.native2ascii.DefaultNative2Ascii:
addFilesconvert

Field Detail

IMPLEMENTATION_NAMEback to summary
public static final String IMPLEMENTATION_NAME

Identifies this adapter.

SUN_TOOLS_NATIVE2ASCII_MAINback to summary
private static final String SUN_TOOLS_NATIVE2ASCII_MAIN

Constructor Detail

SunNative2Asciiback to summary
public SunNative2Ascii()

Method Detail

runback to summary
protected boolean run(Commandline cmd, ProjectComponent log) throws BuildException

Implements abstract org.apache.tools.ant.taskdefs.optional.native2ascii.DefaultNative2Ascii.run.

Doc from org.apache.tools.ant.taskdefs.optional.native2ascii.DefaultNative2Ascii.run.

Executes the command.

Parameters
cmd:Commandline

Command line to execute

log:ProjectComponent

provides access to Ant's logging system.

Returns:boolean

whether execution was successful

Annotations
@Override
Exceptions
BuildException:
if there was a problem.
setupback to summary
protected void setup(Commandline cmd, Native2Ascii args) throws BuildException

Overrides org.apache.tools.ant.taskdefs.optional.native2ascii.DefaultNative2Ascii.setup.

Doc from org.apache.tools.ant.taskdefs.optional.native2ascii.DefaultNative2Ascii.setup.

Sets up the initial command line.

only the -encoding argument and nested arg elements get handled here.

Parameters
cmd:Commandline

Command line to add to

args:Native2Ascii

provides the user-setting and access to Ant's logging system.

Annotations
@Override
Exceptions
BuildException:
if there was a problem.