|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.Task | +--org.apache.tools.ant.taskdefs.optional.Javah
Task to generate JNI header files using javah. This task can take the following arguments:
<class name="xxx">
elements within the task.
When this task executes, it will generate C header and source files that are needed to implement native methods.
Inner Class Summary | |
class |
Javah.ClassArgument
|
Fields inherited from class org.apache.tools.ant.Task |
description, location, project, target, taskName, taskType, wrapper |
Constructor Summary | |
Javah()
|
Method Summary | |
Path |
createBootclasspath()
|
Javah.ClassArgument |
createClass()
|
Path |
createClasspath()
|
void |
execute()
Executes the task. |
protected void |
logAndAddFilesToCompile(Commandline cmd)
Logs the compilation parameters, adds the files to compile and logs the &qout;niceSourceList" |
void |
setBootclasspath(Path src)
|
void |
setBootClasspathRef(Reference r)
Adds a reference to a CLASSPATH defined elsewhere. |
void |
setClass(java.lang.String cls)
|
void |
setClasspath(Path src)
|
void |
setClasspathRef(Reference r)
Adds a reference to a CLASSPATH defined elsewhere. |
void |
setDestdir(java.io.File destDir)
Set the destination directory into which the Java source files should be compiled. |
void |
setForce(boolean force)
Set the force-write flag. |
void |
setOld(boolean old)
Set the old flag. |
void |
setOutputFile(java.lang.String outputFile)
Set the output file name. |
void |
setStubs(boolean stubs)
Set the stubs flag. |
void |
setVerbose(boolean verbose)
Set the verbose flag. |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getProject, getRuntimeConfigurableWrapper, getTaskName, init, log, log, maybeConfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Javah()
Method Detail |
public void setClass(java.lang.String cls)
public Javah.ClassArgument createClass()
public void setDestdir(java.io.File destDir)
public void setClasspath(Path src)
public Path createClasspath()
public void setClasspathRef(Reference r)
public void setBootclasspath(Path src)
public Path createBootclasspath()
public void setBootClasspathRef(Reference r)
public void setOutputFile(java.lang.String outputFile)
public void setForce(boolean force)
public void setOld(boolean old)
public void setStubs(boolean stubs)
public void setVerbose(boolean verbose)
public void execute() throws BuildException
execute
in class Task
org.apache.tools.ant.Task
BuildException
- if someting goes wrong with the buildprotected void logAndAddFilesToCompile(Commandline cmd)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |