Class NativeJavahMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.natives.plugin.AbstractNativeMojo
org.codehaus.mojo.natives.plugin.NativeJavahMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
@Mojo(name="javah",
defaultPhase=GENERATE_SOURCES,
requiresDependencyResolution=COMPILE)
public class NativeJavahMojo
extends AbstractNativeMojo
Generate JNI include files based on a set of class names
-
Field Summary
FieldsFields inherited from class AbstractNativeMojo
dependencyIncludeDirectory, EMPTY_FILE_LIST, envFactoryManager, INCZIP_FOUND, INCZIP_TYPE, LINKER_INPUT_LIST_NAME, LINKER_OUTPUT_PATH, project, skip, workingDirectoryFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()protected JavahConfigurationInternal only for test harness purposeprotected org.apache.maven.project.MavenProjectInternal for unit test onlyMethods inherited from class AbstractNativeMojo
getAllCompilersOutputFileList, getEnvFactory, removeEmptyOptions, saveCompilerOutputFilePathsMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
javahOutputDirectory
@Parameter(defaultValue="${project.build.directory}/native/javah", required=true) protected File javahOutputDirectoryWhere to place javah generated file- Since:
- 1.0-alpha-2
-
-
Constructor Details
-
NativeJavahMojo
public NativeJavahMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getJavahConfiguration
Internal only for test harness purpose- Returns:
-
getProject
protected org.apache.maven.project.MavenProject getProject()Internal for unit test only- Overrides:
getProjectin classAbstractNativeMojo
-