org.freehep.maven.nar
Class NarIntegrationTestMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.freehep.maven.nar.AbstractNarMojo
org.freehep.maven.nar.AbstractDependencyMojo
org.freehep.maven.nar.AbstractCompileMojo
org.freehep.maven.nar.NarIntegrationTestMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, NarConstants
public class NarIntegrationTestMojo
- extends AbstractCompileMojo
Run integration tests using Surefire.
This goal was copied from Maven's surefire plugin to accomodate a few things
for the NAR plugin: 1. To test a jar file with its native module we can only
run after the package phase, so we use the integration-test phase. 2. We need
to set java.library.path to an AOL (architecture-os-linker) specific value,
but AOL is only known in the NAR plugin and thus cannot be set from the pom.
3. To have the java.library.path definition picked up by java we need the
"pertest" forkmode.
To use this goal you need to put the test sources in the regular test
directories but disable the running of the tests by the
maven-surefire-plugin.
- Version:
- $Id: NarIntegrationTestMojo.java 13111 2007-07-24 04:02:00Z duns $,
2.3 maven repository maven-surefire-plugin
- Author:
- Jason van Zyl (modified by Mark Donszelmann, noted by FREEHEP)
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class org.freehep.maven.nar.AbstractCompileMojo |
failOnError, getAntProject, getC, getCpp, getDependencyLibOrder, getFortran, getJava, getJavah, getJavaHome, getLibraries, getOutput, getRuntime, getTests, setDependencyLibOrder, useLibtool |
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 |
NarIntegrationTestMojo
public NarIntegrationTestMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
processSystemProperties
protected void processSystemProperties(boolean setInSystem)
isSkipExec
public boolean isSkipExec()
- Returns:
- SurefirePlugin Returns the skipExec.
setSkipExec
public void setSkipExec(boolean skipExec)
- Parameters:
skipExec
- the skipExec to set
Copyright © 2000-2007 FreeHEP. All Rights Reserved.