org.codehaus.mojo.natives.plugin
Class NativeJavahMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.natives.plugin.AbstractNativeMojo
          extended by org.codehaus.mojo.natives.plugin.NativeJavahMojo
All Implemented Interfaces:
ContextEnabled, Mojo

public class NativeJavahMojo
extends AbstractNativeMojo

Generate JNI include files based on a set of class names

Is defined by the goal name:
javah
Is bound to the specified phase of the standard build lifecycle:
generate-sources
Requires the dependencies in this specified scope:
compile

Field Summary
protected  File javahOutputDirectory
          Where to place javah generated file
protected  File outputDirectory
          Deprecated. use javahOutputDirectory instead
 
Fields inherited from class org.codehaus.mojo.natives.plugin.AbstractNativeMojo
dependencyIncludeDirectory, EMPTY_FILE_LIST, envFactoryManager, INCZIP_FOUND, INCZIP_TYPE, LINKER_INPUT_LIST_NAME, LINKER_OUTPUT_PATH, project, workingDirectory
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
NativeJavahMojo()
           
 
Method Summary
 void execute()
           
protected  JavahConfiguration getJavahConfiguration()
          Internal only for test harness purpose
protected  org.apache.maven.project.MavenProject getProject()
          Internal for unit test only
 
Methods inherited from class org.codehaus.mojo.natives.plugin.AbstractNativeMojo
getAllCompilersOutputFileList, getEnvFactory, removeEmptyOptions, saveCompilerOutputFilePaths
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

outputDirectory

protected File outputDirectory
Deprecated. use javahOutputDirectory instead
Where to place javah generated file

Since:
1.0-alpha-2
Is defined by:

javahOutputDirectory

protected File javahOutputDirectory
Where to place javah generated file

Since:
1.0-alpha-2
Is defined by:
default-value:
${project.build.directory}/native/javah
Is required.
Constructor Detail

NativeJavahMojo

public NativeJavahMojo()
Method Detail

execute

public void execute()
             throws MojoExecutionException
Throws:
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


Copyright © 2005-2010 Codehaus. All Rights Reserved.