Name
javah
Synopsis
Executes the javah tool, generating Java Native
Interface (JNI) headers from one or more Java classes. This task uses
the default Java compiler, unless the
build.compiler
property is set to something else,
as explained in the javac
task description in
Chapter 7.
Attributes
-
bootclasspath
(1.3, 1.4, Path, N) The bootstrap classpath to use.
-
bootclasspathref
(1.3, 1.4, Reference, N) Reference to a bootstrap classpath defined elsewhere in the buildfile.
-
class
(1.3, 1.4, String, Y) A comma-separated list of class names to process.
-
classpath
(1.3, 1.4, Path, N) The classpath to use.
-
classpathref
(1.3, 1.4, Reference, N) A reference to a classpath defined elsewhere in the buildfile.
-
destdir
(1.3, 1.4, File, *) The destination directory for generated files.
-
force
(1.3, 1.4, boolean, N) If
true
, the task always writes output files. Defaults tofalse
.-
old
(1.3, 1.4, boolean, N) If
true
, the task uses JDK 1.0-style header files. Defaults tofalse
.-
outputfile
(1.3, 1.4, File, *) If specified in place of
destdir
, the task concatenates all output into this single file.-
stubs
(1.3, 1.4, boolean, N) Used when
old=true
. Iftrue
, the task generates C declarations. Defaults tofalse
.-
verbose
(1.3, 1.4, boolean, N) If
true
, the task executesjavah
in verbose mode. Defaults tofalse
.
Exactly one of either outputfile
or
destdir
is required.
Content
- 0,1 nested
<bootclasspath>
elements (1.3, 1.4) May be used in place of the
bootclasspath
orbootclasspathref
attributes.- 0..n nested
<class>
elements (1.3, ...
Get Ant: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.