diff options
Diffstat (limited to 'src/main/java/org/apache/maven/plugin/nar/NarJavahMojo.java')
-rw-r--r-- | src/main/java/org/apache/maven/plugin/nar/NarJavahMojo.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main/java/org/apache/maven/plugin/nar/NarJavahMojo.java b/src/main/java/org/apache/maven/plugin/nar/NarJavahMojo.java new file mode 100644 index 0000000..582e0ad --- /dev/null +++ b/src/main/java/org/apache/maven/plugin/nar/NarJavahMojo.java @@ -0,0 +1,24 @@ +// Copyright FreeHEP, 2005. +package org.freehep.maven.nar; + +import org.apache.maven.plugin.MojoExecutionException; +import org.apache.maven.plugin.MojoFailureException; + +/** + * Compiles class files into c/c++ headers using "javah". + * Any class file that contains methods that were declared + * "native" will be run through javah. + * + * @goal nar-javah + * @phase compile + * @author <a href="Mark.Donszelmann@slac.stanford.edu">Mark Donszelmann</a> + * @version $Id: plugin/src/main/java/org/freehep/maven/nar/NarJavahMojo.java eeac31f37379 2007/07/24 04:02:00 duns $ + */ +public class NarJavahMojo extends AbstractCompileMojo { + + public void execute() throws MojoExecutionException, MojoFailureException { + if (shouldSkip()) return; + + getJavah().execute(); + } +}
\ No newline at end of file |