org.codehaus.mojo.openjpa
Class OpenJpaTestEnhancerMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.openjpa.AbstractOpenJpaMojo
org.codehaus.mojo.openjpa.AbstractOpenJpaEnhancerMojo
org.codehaus.mojo.openjpa.OpenJpaTestEnhancerMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class OpenJpaTestEnhancerMojo
- extends AbstractOpenJpaEnhancerMojo
Processes Application model classes and enhances them by running Open JPA
Enhancer tool.
- Since:
- 1.1
- Version:
- $Id: OpenJpaTestEnhancerMojo.java 9137 2009-02-28 21:55:03Z struberg $
- Author:
- Mark Struberg
- Is bound to the specified phase of the standard build lifecycle:
- process-test-classes
- Requires the dependencies in this specified scope:
- test
- Is defined by the goal name:
- test-enhance
Field Summary |
protected List |
testClasspathElements
List of all class path elements that will be searched for the
persistence-enabled classes and resources expected by
PCEnhancer. |
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Method Summary |
protected List |
getClasspathElements()
This function overloads AbstractOpenJpaMojo#getClasspathElements() to return the test
classpath elements. |
protected File |
getEntityClasses()
The File where the class files of the entities to enhance reside |
protected boolean |
skipMojo()
Determine if the mojo execution should get skipped. |
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 |
testClasspathElements
protected List testClasspathElements
- List of all class path elements that will be searched for the
persistence-enabled
classes and resources expected by
PCEnhancer.
- Is defined by:
- default-value:
- ${project.testClasspathElements}
- Is required.
- Is readonly.
OpenJpaTestEnhancerMojo
public OpenJpaTestEnhancerMojo()
getClasspathElements
protected List getClasspathElements()
- This function overloads
AbstractOpenJpaMojo#getClasspathElements()
to return the test
classpath elements.
- Overrides:
getClasspathElements
in class AbstractOpenJpaMojo
- 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:
getEntityClasses
in class AbstractOpenJpaMojo
- Returns:
- normaly the test entity classes are located in target/test-classes
skipMojo
protected boolean skipMojo()
- Description copied from class:
AbstractOpenJpaMojo
Determine if the mojo execution should get skipped.
This is the case if:
- Overrides:
skipMojo
in class AbstractOpenJpaMojo
- Returns:
true
if the mojo execution should be skipped.
Copyright © 2008-2014 Codehaus. All Rights Reserved.