org.apache.maven.plugin.resources.stub
Class MavenProjectBuildStub

java.lang.Object
  extended by org.apache.maven.project.MavenProject
      extended by org.apache.maven.plugin.testing.stubs.MavenProjectStub
          extended by org.apache.maven.plugin.resources.stub.MavenProjectBasicStub
              extended by org.apache.maven.plugin.resources.stub.MavenProjectBuildStub
Direct Known Subclasses:
MavenProjectResourcesStub

public class MavenProjectBuildStub
extends MavenProjectBasicStub


Field Summary
protected  Build build
           
protected  String buildDirectory
           
protected  HashMap dataMap
           
protected  ArrayList directoryList
           
protected  ArrayList fileList
           
protected  String outputDirectory
           
protected  String resourcesDirectory
           
protected  String srcDirectory
           
protected  String targetDirectory
           
protected  String targetResourceDirectory
           
protected  String targetTestResourcesDirectory
           
protected  String testOutputDirectory
           
protected  String testResourcesDirectory
           
 
Fields inherited from class org.apache.maven.plugin.resources.stub.MavenProjectBasicStub
description, identifier, properties, testRootDir
 
Fields inherited from class org.apache.maven.project.MavenProject
EMPTY_PROJECT_ARTIFACT_ID, EMPTY_PROJECT_GROUP_ID, EMPTY_PROJECT_VERSION
 
Constructor Summary
MavenProjectBuildStub(String key)
           
 
Method Summary
 void addDirectory(String name)
           
 void addFile(String name)
           
 void addFile(String name, String data)
           
 void cleanBuildEnvironment()
           
 Build getBuild()
           
 String getOutputDirectory()
           
 String getResourcesDirectory()
           
 String getTestOutputDirectory()
           
 String getTestResourcesDirectory()
           
 void setOutputDirectory(String dir)
           
 void setupBuildEnvironment()
           
 
Methods inherited from class org.apache.maven.plugin.resources.stub.MavenProjectBasicStub
addProperty, getArtifactId, getBasedir, getDescription, getGroupId, getName, getPackaging, getProperties, getVersion, setDescription
 
Methods inherited from class org.apache.maven.plugin.testing.stubs.MavenProjectStub
addAttachedArtifact, addCompileSourceRoot, addContributor, addDeveloper, addLicense, addMailingList, addPlugin, addProjectReference, addResource, addScriptSourceRoot, addTestCompileSourceRoot, addTestResource, attachArtifact, createArtifacts, getActiveProfiles, getArtifact, getArtifactMap, getArtifacts, getAttachedArtifacts, getBuildExtensions, getBuildPlugins, getCiManagement, getCollectedProjects, getCompileArtifacts, getCompileClasspathElements, getCompileDependencies, getCompileSourceRoots, getContributors, getDefaultGoal, getDependencies, getDependencyArtifacts, getDependencyManagement, getDevelopers, getDistributionManagement, getDistributionManagementArtifactRepository, getExecutionProject, getExtensionArtifactMap, getExtensionArtifacts, getFile, getFilters, getGoalConfiguration, getId, getInceptionYear, getIssueManagement, getLicenses, getMailingLists, getModel, getModelVersion, getModulePathAdjustment, getModules, getOrganization, getOriginalModel, getParent, getParentArtifact, getPluginArtifactMap, getPluginArtifactRepositories, getPluginArtifacts, getPluginManagement, getPluginRepositories, getPrerequisites, getProjectReferences, getRemoteArtifactRepositories, getReportArtifactMap, getReportArtifacts, getReportConfiguration, getReporting, getReportPlugins, getRepositories, getResources, getRuntimeArtifacts, getRuntimeClasspathElements, getRuntimeDependencies, getScm, getScriptSourceRoots, getSystemArtifacts, getSystemClasspathElements, getSystemDependencies, getTestArtifacts, getTestClasspathElements, getTestCompileSourceRoots, getTestDependencies, getTestResources, getUrl, hasParent, injectPluginManagementInfo, isExecutionRoot, replaceWithActiveArtifact, setActiveProfiles, setArtifact, setArtifactId, setArtifactMap, setArtifacts, setAttachedArtifacts, setBuild, setBuildOverlay, setCiManagement, setCollectedProjects, setCompileArtifacts, setCompileDependencies, setCompileSourceRoots, setContributors, setDependencies, setDependencyArtifacts, setDevelopers, setDistributionManagement, setExecutionProject, setExecutionRoot, setExtensionArtifactMap, setExtensionArtifacts, setFile, setGroupId, setInceptionYear, setIssueManagement, setLicenses, setMailingLists, setModel, setModelVersion, setName, setOrganization, setOriginalModel, setPackaging, setParent, setParentArtifact, setPluginArtifactMap, setPluginArtifactRepositories, setPluginArtifacts, setProjectReferences, setReleaseArtifactRepository, setRemoteArtifactRepositories, setReportArtifactMap, setReportArtifacts, setReporting, setRuntimeArtifacts, setRuntimeClasspathElements, setRuntimeDependencies, setScm, setScriptSourceRoots, setSnapshotArtifactRepository, setSystemArtifacts, setSystemClasspathElements, setSystemDependencies, setTestArtifacts, setTestClasspathElements, setTestCompileSourceRoots, setTestDependencies, setUrl, setVersion, writeModel, writeOriginalModel
 
Methods inherited from class org.apache.maven.project.MavenProject
equals, getManagedVersionMap, hashCode, setManagedVersionMap
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

build

protected Build build

srcDirectory

protected String srcDirectory

targetDirectory

protected String targetDirectory

buildDirectory

protected String buildDirectory

outputDirectory

protected String outputDirectory

testOutputDirectory

protected String testOutputDirectory

resourcesDirectory

protected String resourcesDirectory

testResourcesDirectory

protected String testResourcesDirectory

targetResourceDirectory

protected String targetResourceDirectory

targetTestResourcesDirectory

protected String targetTestResourcesDirectory

fileList

protected ArrayList fileList

directoryList

protected ArrayList directoryList

dataMap

protected HashMap dataMap
Constructor Detail

MavenProjectBuildStub

public MavenProjectBuildStub(String key)
                      throws Exception
Throws:
Exception
Method Detail

addDirectory

public void addDirectory(String name)

setOutputDirectory

public void setOutputDirectory(String dir)

addFile

public void addFile(String name)

addFile

public void addFile(String name,
                    String data)

getOutputDirectory

public String getOutputDirectory()

getTestOutputDirectory

public String getTestOutputDirectory()

getResourcesDirectory

public String getResourcesDirectory()

getTestResourcesDirectory

public String getTestResourcesDirectory()

getBuild

public Build getBuild()
Overrides:
getBuild in class MavenProjectStub

cleanBuildEnvironment

public void cleanBuildEnvironment()
                           throws Exception
Throws:
Exception

setupBuildEnvironment

public void setupBuildEnvironment()
                           throws Exception
Throws:
Exception


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.