Class 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 Detail

      • javahOutputDirectory

        @Parameter(defaultValue="${project.build.directory}/native/javah",
                   required=true)
        protected File javahOutputDirectory
        Where to place javah generated file
        Since:
        1.0-alpha-2
    • Constructor Detail

      • NativeJavahMojo

        public NativeJavahMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • getJavahConfiguration

        protected JavahConfiguration getJavahConfiguration()
        Internal only for test harness purpose
        Returns:
      • getProject

        protected org.apache.maven.project.MavenProject getProject()
        Internal for unit test only
        Overrides:
        getProject in class AbstractNativeMojo