@Mojo(name="test-enhance",
defaultPhase=PROCESS_TEST_CLASSES,
requiresDependencyResolution=TEST,
threadSafe=true)
public class OpenJpaTestEnhancerMojo
extends AbstractOpenJpaEnhancerMojo
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
testClasspathElements
List of all class path elements that will be searched for the
persistence-enabled classes and resources expected by
PCEnhancer. |
addDefaultConstructor, enforcePropertyRestrictions, tmpClassLoaderclasses, compileClasspathElements, OPTION_CONNECTION_DRIVER_NAME, OPTION_CONNECTION_PROPERTIES, OPTION_PROPERTIES, OPTION_PROPERTIES_FILE, project, workDir| Constructor and Description |
|---|
OpenJpaTestEnhancerMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
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.
|
execute, getOptionscreateOptions, extendRealmClasspath, findEntityClassFiles, getFilePathsprotected List<String> getClasspathElements()
AbstractOpenJpaMojo#getClasspathElements() to return the test
classpath elements.getClasspathElements in class AbstractOpenJpaMojoprotected File getEntityClasses()
getEntityClasses in class AbstractOpenJpaMojoprotected boolean skipMojo()
AbstractOpenJpaMojoDetermine if the mojo execution should get skipped.
This is the case if:AbstractOpenJpaMojo.skip is trueAbstractOpenJpaMojo.forceMojoExecution is falseskipMojo in class AbstractOpenJpaMojotrue if the mojo execution should be skipped.Copyright © 2006–2022 Apache Software Foundation. All rights reserved.