Package org.apache.openjpa.tools.maven
Class OpenJpaTestEnhancerMojo
- java.lang.Object
 - 
- org.apache.maven.plugin.AbstractMojo
 - 
- org.apache.openjpa.tools.maven.AbstractOpenJpaMojo
 - 
- org.apache.openjpa.tools.maven.AbstractOpenJpaEnhancerMojo
 - 
- org.apache.openjpa.tools.maven.OpenJpaTestEnhancerMojo
 
 
 
 
 
- 
- All Implemented Interfaces:
 org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="test-enhance", defaultPhase=PROCESS_TEST_CLASSES, requiresDependencyResolution=TEST, threadSafe=true) public class OpenJpaTestEnhancerMojo extends AbstractOpenJpaEnhancerMojoProcesses Application model test classes and enhances them by running OpenJPA Enhancer tool.- Since:
 - 1.1
 - Version:
 - $Id: OpenJpaTestEnhancerMojo.java 9137 2009-02-28 21:55:03Z struberg $
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected List<String>testClasspathElementsList of all class path elements that will be searched for thepersistence-enabledclasses and resources expected by PCEnhancer.- 
Fields inherited from class org.apache.openjpa.tools.maven.AbstractOpenJpaEnhancerMojo
addDefaultConstructor, enforcePropertyRestrictions, tmpClassLoader 
- 
Fields inherited from class org.apache.openjpa.tools.maven.AbstractOpenJpaMojo
classes, compileClasspathElements, OPTION_CONNECTION_DRIVER_NAME, OPTION_CONNECTION_PROPERTIES, OPTION_PROPERTIES, OPTION_PROPERTIES_FILE, project, workDir 
 - 
 
- 
Constructor Summary
Constructors Constructor Description OpenJpaTestEnhancerMojo() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<String>getClasspathElements()This function overloadsAbstractOpenJpaMojo#getClasspathElements()to return the test classpath elements.protected FilegetEntityClasses()The File where the class files of the entities to enhance resideprotected booleanskipMojo()Determine if the mojo execution should get skipped.- 
Methods inherited from class org.apache.openjpa.tools.maven.AbstractOpenJpaEnhancerMojo
execute, getOptions 
- 
Methods inherited from class org.apache.openjpa.tools.maven.AbstractOpenJpaMojo
createOptions, extendRealmClasspath, findEntityClassFiles, getFilePaths 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getClasspathElements
protected List<String> getClasspathElements()
This function overloadsAbstractOpenJpaMojo#getClasspathElements()to return the test classpath elements.- Overrides:
 getClasspathElementsin classAbstractOpenJpaMojo- Returns:
 - List of classpath elements for the test phase
 
 
- 
getEntityClasses
protected File getEntityClasses()
The File where the class files of the entities to enhance reside- Overrides:
 getEntityClassesin classAbstractOpenJpaMojo- Returns:
 - normaly the test entity classes are located in target/test-classes
 
 
- 
skipMojo
protected boolean skipMojo()
Description copied from class:AbstractOpenJpaMojoDetermine if the mojo execution should get skipped.
This is the case if:AbstractOpenJpaMojo.skipistrue- if the mojo gets executed on a project with packaging type 'pom' and
       
AbstractOpenJpaMojo.forceMojoExecutionisfalse 
- Overrides:
 skipMojoin classAbstractOpenJpaMojo- Returns:
 trueif the mojo execution should be skipped.
 
 - 
 
 -