public class Javah extends Task
<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.
| Modifier and Type | Class and Description | 
|---|---|
| class  | Javah.ClassArgumentA class corresponding the the nested "class" element. | 
| Constructor and Description | 
|---|
| Javah()No arg constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | add(JavahAdapter adapter)Set the adapter explicitly. | 
| void | addFileSet(FileSet fs)Add a fileset. | 
| ImplementationSpecificArgument | createArg()Adds an implementation specific command-line argument. | 
| Path | createBootclasspath()Adds path to bootstrap class files. | 
| Javah.ClassArgument | createClass()Adds class to process. | 
| Path | createClasspath()Path to use for classpath. | 
| Path | createImplementationClasspath()The classpath to use when loading the javah implementation
 if it is not a built-in one. | 
| void | execute()Execute the task | 
| Path | getBootclasspath()The bootclasspath to use. | 
| String[] | getClasses()Names of the classes to process. | 
| Path | getClasspath()The classpath to use. | 
| String[] | getCurrentArgs()Returns the (implementation specific) settings given as nested
 arg elements. | 
| File | getDestdir()The destination directory, if any. | 
| boolean | getForce()Whether output files should always be written. | 
| boolean | getOld()Whether old JDK1.0-style header files should be generated. | 
| File | getOutputfile()The destination file, if any. | 
| boolean | getStubs()Whether C declarations from the Java object file should be generated. | 
| boolean | getVerbose()Whether verbose output should get generated. | 
| void | logAndAddFiles(Commandline cmd)Logs the compilation parameters, adds the files to compile and logs the
 "niceSourceList" | 
| protected void | logAndAddFilesToCompile(Commandline cmd)Logs the compilation parameters, adds the files to compile and logs the
 "niceSourceList" | 
| void | setBootclasspath(Path src)location of bootstrap class files. | 
| void | setBootClasspathRef(Reference r)To the bootstrap path, this adds a reference to a classpath defined elsewhere. | 
| void | setClass(String cls)the fully-qualified name of the class (or classes, separated by commas). | 
| void | setClasspath(Path src)the classpath to use. | 
| void | setClasspathRef(Reference r)Adds a reference to a classpath defined elsewhere. | 
| void | setDestdir(File destDir)Set the destination directory into which the Java source
 files should be compiled. | 
| void | setForce(boolean force)If true, output files should always be written (JDK1.2 only). | 
| void | setImplementation(String impl)Choose the implementation for this particular task. | 
| void | setOld(boolean old)If true, specifies that old JDK1.0-style header files should be
 generated. | 
| void | setOutputFile(File outputFile)Concatenates the resulting header or source files for all
 the classes listed into this file. | 
| void | setStubs(boolean stubs)If true, generate C declarations from the Java object file (used with old). | 
| void | setVerbose(boolean verbose)If true, causes Javah to print a message concerning
 the status of the generated files. | 
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeclone, getDescription, getLocation, getProject, setDescription, setLocation, setProjectpublic void add(JavahAdapter adapter)
public void addFileSet(FileSet fs)
fs - the fileset to add.public ImplementationSpecificArgument createArg()
public Path createBootclasspath()
public Javah.ClassArgument createClass()
ClassArgument to be configured.public Path createClasspath()
public Path createImplementationClasspath()
public void execute()
             throws BuildException
execute in class TaskBuildException - is there is a problem in the task execution.public Path getBootclasspath()
public String[] getClasses()
public Path getClasspath()
public String[] getCurrentArgs()
public File getDestdir()
public boolean getForce()
public boolean getOld()
public File getOutputfile()
public boolean getStubs()
public boolean getVerbose()
public void logAndAddFiles(Commandline cmd)
cmd - the command line.protected void logAndAddFilesToCompile(Commandline cmd)
cmd - the command line to add parameters to.public void setBootclasspath(Path src)
src - the bootstrap classpath.public void setBootClasspathRef(Reference r)
r - a reference to a classpathpublic void setClass(String cls)
cls - the classname (or classnames).public void setClasspath(Path src)
src - the classpath.public void setClasspathRef(Reference r)
r - a reference to a classpath.public void setDestdir(File destDir)
destDir - the destination directory.public void setForce(boolean force)
force - the value to use.public void setImplementation(String impl)
impl - the name of the implementation.public void setOld(boolean old)
old - if true use old 1.0 style header files.public void setOutputFile(File outputFile)
outputFile - the output file.public void setStubs(boolean stubs)
stubs - if true, generated C declarations.public void setVerbose(boolean verbose)
verbose - if true, do verbose printing.