org.fusesource.hawtjni.maven
Class PackageJarMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.fusesource.hawtjni.maven.PackageJarMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class PackageJarMojo
extends org.apache.maven.plugin.AbstractMojo

This goal allows allows you to package the JNI library created by build goal in a JAR which the HawtJNI runtime can unpack when the library needs to be loaded. This platform specific jar is attached with a classifier which matches the current platform.

Author:
Hiram Chirino

Field Summary
protected  org.apache.maven.project.MavenProject project
          The maven project.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
PackageJarMojo()
           
 
Method Summary
 void execute()
           
 String getNativeCodeValue(Library library)
           
 String getOsgiOSName()
           
 String getOsgiProcessor()
           
 
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

project

protected org.apache.maven.project.MavenProject project
The maven project.

Constructor Detail

PackageJarMojo

public PackageJarMojo()
Method Detail

execute

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

getNativeCodeValue

public String getNativeCodeValue(Library library)

getOsgiOSName

public String getOsgiOSName()

getOsgiProcessor

public String getOsgiProcessor()


Copyright © 2009-2011 FuseSource, Corp.. All Rights Reserved.