native:javah

Full name:

org.codehaus.mojo:native-maven-plugin:1.0-alpha-7:javah

Description:

Generate JNI include files based on a set of class names

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Requires dependency resolution of artifacts in scope: compile.
  • Binds by default to the lifecycle phase: generate-sources.

Required Parameters

Name Type Since Description
javahOutputDirectory File 1.0-alpha-2 Where to place javah generated file
Default value is: ${project.build.directory}/native/javah.
javahProvider String 1.0-alpha-2 Javah Provider.
Default value is: default.
workingDirectory File 1.0-alpha-2 user directory when external tools( ie compiler/linker ) are invoked
Default value is: ${basedir}.

Optional Parameters

Name Type Since Description
classNames List 1.0-alpha-2 Deprecated. Use javahClassNames instead. Note starting 1.0-alpha-4, running javah in its own execution is no longer necessary since it is implicitly bound to all shared library custom lifecycle.
dependencyIncludeDirectory File - Directory to unpack .inczip dependency files to be included as system include path
Default value is: ${project.build.directory}/native/include.
envFactoryName String 1.0-alpha-2 Specifies a fully qualified class name implementing the org.codehaus.mojo.natives.EnvFactory interface. The class creates a set environment variables to be used with the command line.
javahClassNames List 1.0-alpha-4 List of class names to generate native files. Additional JNI interface will automatically discovered from project's dependencies of jar type, when javahSearchJNIFromDependencies is true
javahOutputFileName String 1.0-alpha-4 if configured will be combined with outputDirectory to pass into javah's -o option
javahPath File 1.0-alpha-2 Path to javah executable, if present, it will override the default one which bases on architecture type. See 'javahProvider' argument
javahSearchJNIFromDependencies boolean 1.0-alpha-4 Enable the search from project dependencies for JNI interfaces, in addition to javahClassNames
Default value is: false.
javahVerbose boolean 1.0-alpha-2 Enable javah verbose mode
Default value is: false.
outputDirectory File 1.0-alpha-2 Deprecated. use javahOutputDirectory instead
outputFileName String 1.0-alpha-2 Deprecated. Use javaOutputFileName instead

Parameter Details

classNames:

Deprecated. Use javahClassNames instead. Note starting 1.0-alpha-4, running javah in its own execution is no longer necessary since it is implicitly bound to all shared library custom lifecycle.
(no description)
  • Type: java.util.List
  • Since: 1.0-alpha-2
  • Required: No

dependencyIncludeDirectory:

Directory to unpack .inczip dependency files to be included as system include path
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.directory}/native/include

envFactoryName:

Specifies a fully qualified class name implementing the org.codehaus.mojo.natives.EnvFactory interface. The class creates a set environment variables to be used with the command line.
  • Type: java.lang.String
  • Since: 1.0-alpha-2
  • Required: No

javahClassNames:

List of class names to generate native files. Additional JNI interface will automatically discovered from project's dependencies of jar type, when javahSearchJNIFromDependencies is true
  • Type: java.util.List
  • Since: 1.0-alpha-4
  • Required: No

javahOutputDirectory:

Where to place javah generated file
  • Type: java.io.File
  • Since: 1.0-alpha-2
  • Required: Yes
  • Default: ${project.build.directory}/native/javah

javahOutputFileName:

if configured will be combined with outputDirectory to pass into javah's -o option
  • Type: java.lang.String
  • Since: 1.0-alpha-4
  • Required: No

javahPath:

Path to javah executable, if present, it will override the default one which bases on architecture type. See 'javahProvider' argument
  • Type: java.io.File
  • Since: 1.0-alpha-2
  • Required: No

javahProvider:

Javah Provider.
  • Type: java.lang.String
  • Since: 1.0-alpha-2
  • Required: Yes
  • Default: default

javahSearchJNIFromDependencies:

Enable the search from project dependencies for JNI interfaces, in addition to javahClassNames
  • Type: boolean
  • Since: 1.0-alpha-4
  • Required: No
  • Default: false

javahVerbose:

Enable javah verbose mode
  • Type: boolean
  • Since: 1.0-alpha-2
  • Required: No
  • Default: false

outputDirectory:

Deprecated. use javahOutputDirectory instead
Where to place javah generated file
  • Type: java.io.File
  • Since: 1.0-alpha-2
  • Required: No

outputFileName:

Deprecated. Use javaOutputFileName instead
if configured will be combined with outputDirectory to pass into javah's -o option
  • Type: java.lang.String
  • Since: 1.0-alpha-2
  • Required: No

workingDirectory:

user directory when external tools( ie compiler/linker ) are invoked
  • Type: java.io.File
  • Since: 1.0-alpha-2
  • Required: Yes
  • Default: ${basedir}