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

public final Class KaffeNative2Ascii

extends DefaultNative2Ascii
Class Inheritance
Imports
org.apache.tools.ant.BuildException, .ProjectComponent, org.apache.tools.ant.taskdefs.ExecuteJava, org.apache.tools.ant.taskdefs.optional.Native2Ascii, org.apache.tools.ant.types.Commandline

Adapter to kaffe.tools.native2ascii.Native2Ascii.
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
private static Class<?>

Returns:

null if neither class can get loaded.
getN2aClass
()

tries to load Kaffe Native2Ascii and falls back to the older class name if necessary.

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.

N2A_CLASSNAMESback to summary
private static final String[] N2A_CLASSNAMES

Constructor Detail

KaffeNative2Asciiback to summary
public KaffeNative2Ascii()

Method Detail

getN2aClassback to summary
private static Class<?> getN2aClass()

tries to load Kaffe Native2Ascii and falls back to the older class name if necessary.

Returns:Class<?>

null if neither class can get loaded.

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.