
@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.
|
executeToolassertValidParameters, 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, setVerbosegetLog, getPluginContext, setLog, setPluginContextpublic TestResourcesWriteMojo()
TestResourcesWriteMojo instance.protected String getResourcesModuleName() throws MojoExecutionException
AbstractResourcesWriteMojogetResourcesModuleName in class AbstractResourcesWriteMojoMojoExecutionException - if getting the name fails.protected ClassLoader getResourcesClassLoader() throws MojoExecutionException
AbstractResourcesWriteMojogetResourcesClassLoader in class AbstractResourcesWriteMojoMojoExecutionException - if getting the class loader fails.protected File getResourcesDirectory() throws MojoExecutionException
AbstractResourcesWriteMojogetResourcesDirectory in class AbstractResourcesWriteMojoMojoExecutionException - if getting the directory fails.protected String getGoal() throws MojoExecutionException
AbstractJomcMojogetGoal in class AbstractJomcMojoMojoExecutionException - if getting the goal of the instance fails.protected String getExecutionStrategy() throws MojoExecutionException
AbstractJomcMojogetExecutionStrategy in class AbstractJomcMojoMojoExecutionException - if getting the execution strategy of the instance fails.protected File getResourcesOutputDirectory() throws MojoExecutionException
AbstractResourcesWriteMojogetResourcesOutputDirectory in class AbstractResourcesWriteMojoMojoExecutionException - if getting the directory fails.protected void addMavenResource(MavenProject mavenProject, Resource resource) throws MojoExecutionException
AbstractResourcesWriteMojoMavenProjecŧ.addMavenResource in class AbstractResourcesWriteMojomavenProject - 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.