@Mojo(name="write-test-resources", defaultPhase=PROCESS_TEST_RESOURCES, requiresDependencyResolution=TEST, threadSafe=true) public final class TestResourcesWriteMojo extends AbstractResourcesWriteMojo
Constructor and Description |
---|
TestResourcesWriteMojo()
Creates a new
TestResourcesWriteMojo instance. |
Modifier and Type | Method and Description |
---|---|
protected void |
addMavenResource(MavenProject mavenProject,
Resource resource)
Adds a resource to a
MavenProjecŧ . |
protected String |
getExecutionStrategy()
Gets the execution strategy of the instance.
|
protected String |
getGoal()
Gets the goal of the instance.
|
protected ClassLoader |
getResourcesClassLoader()
Gets the class loader to use for writing resource files.
|
protected File |
getResourcesDirectory()
Gets the directory to write the resource files to.
|
protected String |
getResourcesModuleName()
Gets the name of the module to write resource files of.
|
protected File |
getResourcesOutputDirectory()
Gets the directory to copy resource files to.
|
executeTool
assertValidParameters, assertValidResources, copyDirectory, copyFile, createClassFileProcessor, createJomcTool, createModelContext, createObject, createObject, createResourceFileProcessor, createSourceFileProcessor, execute, getAbsoluteFile, getDirectory, getExecutorService, getMainClassLoader, getMainClasspathElements, getMavenProject, getMavenSession, getModel, getModel, getModuleName, getOutputDirectory, getProperties, getProperties, getReportOutputDirectory, getResource, getResource, getSessionDirectory, getSourceDirectory, getTestClassLoader, getTestClasspathElements, getTestModuleName, getTestOutputDirectory, getTestSourceDirectory, getTransformer, getTransformer, isClassProcessingEnabled, isExecutionPermitted, isLoggable, isModelObjectClasspathResolutionEnabled, isModelProcessingEnabled, isResourceProcessingEnabled, isSourceProcessingEnabled, isVerbose, log, log, logMissingModule, logProcessingModel, logProcessingModule, logSeparator, logSeparator, logToolSuccess, setClassProcessingEnabled, setModelObjectClasspathResolutionEnabled, setModelProcessingEnabled, setResourceProcessingEnabled, setSourceProcessingEnabled, setupJomcTool, setupModelContext, setVerbose
getLog, getPluginContext, setLog, setPluginContext
public TestResourcesWriteMojo()
TestResourcesWriteMojo
instance.protected String getResourcesModuleName() throws MojoExecutionException
AbstractResourcesWriteMojo
getResourcesModuleName
in class AbstractResourcesWriteMojo
MojoExecutionException
- if getting the name fails.protected ClassLoader getResourcesClassLoader() throws MojoExecutionException
AbstractResourcesWriteMojo
getResourcesClassLoader
in class AbstractResourcesWriteMojo
MojoExecutionException
- if getting the class loader fails.protected File getResourcesDirectory() throws MojoExecutionException
AbstractResourcesWriteMojo
getResourcesDirectory
in class AbstractResourcesWriteMojo
MojoExecutionException
- if getting the directory fails.protected String getGoal() throws MojoExecutionException
AbstractJomcMojo
getGoal
in class AbstractJomcMojo
MojoExecutionException
- if getting the goal of the instance fails.protected String getExecutionStrategy() throws MojoExecutionException
AbstractJomcMojo
getExecutionStrategy
in class AbstractJomcMojo
MojoExecutionException
- if getting the execution strategy of the instance fails.protected File getResourcesOutputDirectory() throws MojoExecutionException
AbstractResourcesWriteMojo
getResourcesOutputDirectory
in class AbstractResourcesWriteMojo
MojoExecutionException
- if getting the directory fails.protected void addMavenResource(MavenProject mavenProject, Resource resource) throws MojoExecutionException
AbstractResourcesWriteMojo
MavenProjecŧ
.addMavenResource
in class AbstractResourcesWriteMojo
mavenProject
- The MavenProject
to add a resource to.resource
- The Resource
to add.MojoExecutionException
- if adding the resource fails.Copyright © 2005–2016 The JOMC Project. All rights reserved.