Methods Summary |
---|
private static java.lang.Class | getN2aClass()tries to load Kaffe Native2Ascii and falls back to the older
class name if necessary.
for (int i = 0; i < N2A_CLASSNAMES.length; i++) {
try {
return Class.forName(N2A_CLASSNAMES[i]);
} catch (ClassNotFoundException cnfe) {
// Ignore
}
}
return null;
|
protected boolean | run(org.apache.tools.ant.types.Commandline cmd, org.apache.tools.ant.ProjectComponent log){@inheritDoc}
ExecuteJava ej = new ExecuteJava();
Class c = getN2aClass();
if (c == null) {
throw new BuildException("Couldn't load Kaffe's Native2Ascii"
+ " class");
}
cmd.setExecutable(c.getName());
ej.setJavaCommand(cmd);
ej.execute(log.getProject());
// otherwise ExecuteJava has thrown an exception
return true;
|
protected void | setup(org.apache.tools.ant.types.Commandline cmd, org.apache.tools.ant.taskdefs.optional.Native2Ascii args){@inheritDoc}
if (args.getReverse()) {
throw new BuildException("-reverse is not supported by Kaffe");
}
super.setup(cmd, args);
|