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

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
Direct Known Subclasses:
MavenProjectBuildStub

public class MavenProjectBasicStub
extends MavenProjectStub


Field Summary
protected  String description
           
protected  String identifier
           
protected  Properties properties
           
protected  String testRootDir
           
 
Fields inherited from class org.apache.maven.project.MavenProject
EMPTY_PROJECT_ARTIFACT_ID, EMPTY_PROJECT_GROUP_ID, EMPTY_PROJECT_VERSION
 
Constructor Summary
MavenProjectBasicStub(String id)
           
 
Method Summary
 void addProperty(String key, String value)
           
 String getArtifactId()
           
 File getBasedir()
           
 String getDescription()
           
 String getGroupId()
           
 String getName()
           
 String getPackaging()
           
 Properties getProperties()
           
 String getVersion()
           
 void setDescription(String desc)
           
 
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, getBuild, 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

identifier

protected String identifier

testRootDir

protected String testRootDir

properties

protected Properties properties

description

protected String description
Constructor Detail

MavenProjectBasicStub

public MavenProjectBasicStub(String id)
                      throws Exception
Throws:
Exception
Method Detail

getName

public String getName()
Overrides:
getName in class MavenProjectStub

setDescription

public void setDescription(String desc)
Overrides:
setDescription in class MavenProjectStub

getDescription

public String getDescription()
Overrides:
getDescription in class MavenProjectStub

getBasedir

public File getBasedir()
Overrides:
getBasedir in class MavenProjectStub

getGroupId

public String getGroupId()
Overrides:
getGroupId in class MavenProjectStub

getArtifactId

public String getArtifactId()
Overrides:
getArtifactId in class MavenProjectStub

getPackaging

public String getPackaging()
Overrides:
getPackaging in class MavenProjectStub

getVersion

public String getVersion()
Overrides:
getVersion in class MavenProjectStub

addProperty

public void addProperty(String key,
                        String value)

getProperties

public Properties getProperties()
Overrides:
getProperties in class MavenProjectStub


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