Author: vsiveton Date: Mon May 28 15:07:25 2007 New Revision: 542343 URL: http://svn.apache.org/viewvc?view=rev&rev=542343 Log: o updated the javadoc to be more APIable o added javadoc links for reporting
Modified: maven/shared/trunk/maven-plugin-testing-harness/pom.xml maven/shared/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/AbstractMojoTestCase.java maven/shared/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/ResolverExpressionEvaluatorStub.java maven/shared/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/ArtifactStub.java maven/shared/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/MavenProjectStub.java Modified: maven/shared/trunk/maven-plugin-testing-harness/pom.xml URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-plugin-testing-harness/pom.xml?view=diff&rev=542343&r1=542342&r2=542343 ============================================================================== --- maven/shared/trunk/maven-plugin-testing-harness/pom.xml (original) +++ maven/shared/trunk/maven-plugin-testing-harness/pom.xml Mon May 28 15:07:25 2007 @@ -7,9 +7,9 @@ to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - + http://www.apache.org/licenses/LICENSE-2.0 - + Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -108,6 +108,16 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> + <configuration> + <links> + <link>http://java.sun.com/j2se/1.4.2/docs/api/</link> + <link>http://maven.apache.org/ref/current/maven-project/apidocs/</link> + <link>http://maven.apache.org/ref/current/maven-plugin-api/apidocs/</link> + <link>http://maven.apache.org/ref/current/maven-artifact/apidocs/</link> + <link>http://plexus.codehaus.org/plexus-utils/apidocs/</link> + <link>http://www.junit.org/junit/javadoc/</link> + </links> + </configuration> </plugin> </plugins> </reporting> Modified: maven/shared/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/AbstractMojoTestCase.java URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/AbstractMojoTestCase.java?view=diff&rev=542343&r1=542342&r2=542343 ============================================================================== --- maven/shared/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/AbstractMojoTestCase.java (original) +++ maven/shared/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/AbstractMojoTestCase.java Mon May 28 15:07:25 2007 @@ -48,7 +48,7 @@ * the expressions which extract values from the mojo. * TODO: create a standard directory structure for picking up POMs to make this even easier, we really just need a testing * descriptor and make this entirely declarative! - * + * * @author jesse * @version $Id$ */ @@ -63,7 +63,6 @@ * to either the project stub or into the mojo directly with injection...not sure yet though. */ //private MavenProjectBuilder projectBuilder; - protected void setUp() throws Exception { @@ -75,29 +74,39 @@ } /** - * lookup the mojo leveraging the subproject pom + * Lookup the mojo leveraging the subproject pom * + * @param goal + * @param pluginPom + * @return a Mojo instance + * @throws Exception */ - protected Mojo lookupMojo( String goal, String pluginPom ) throws Exception + protected Mojo lookupMojo( String goal, String pluginPom ) + throws Exception { return lookupMojo( goal, new File( pluginPom ) ); } /** - * lookup an empty mojo + * Lookup an empty mojo + * + * @param goal + * @param pluginPom + * @return a Mojo instance + * @throws Exception */ - protected Mojo lookupEmptyMojo( String goal, String pluginPom ) throws Exception + protected Mojo lookupEmptyMojo( String goal, String pluginPom ) + throws Exception { - return lookupEmptyMojo( goal, new File( pluginPom ) ); + return lookupEmptyMojo( goal, new File( pluginPom ) ); } - /** - * lookup the mojo leveraging the actual subprojects pom + * Lookup the mojo leveraging the actual subprojects pom * * @param goal * @param pom - * @return + * @return a Mojo instance * @throws Exception */ protected Mojo lookupMojo( String goal, File pom ) @@ -119,11 +128,11 @@ } /** - * lookup the mojo leveraging the actual subprojects pom + * Lookup the mojo leveraging the actual subprojects pom * * @param goal * @param pom - * @return + * @return a Mojo instance * @throws Exception */ protected Mojo lookupEmptyMojo( String goal, File pom ) @@ -142,15 +151,15 @@ return lookupMojo( groupId, artifactId, version, goal, null ); } - /* - protected Mojo lookupMojo( String groupId, String artifactId, String version, String goal, File pom ) - throws Exception - { - PlexusConfiguration pluginConfiguration = extractPluginConfiguration( artifactId, pom ); + /* + protected Mojo lookupMojo( String groupId, String artifactId, String version, String goal, File pom ) + throws Exception + { + PlexusConfiguration pluginConfiguration = extractPluginConfiguration( artifactId, pom ); - return lookupMojo( groupId, artifactId, version, goal, pluginConfiguration ); - } - */ + return lookupMojo( groupId, artifactId, version, goal, pluginConfiguration ); + } + */ /** * lookup the mojo while we have all of the relavent information * @@ -159,10 +168,11 @@ * @param version * @param goal * @param pluginConfiguration - * @return + * @return a Mojo instance * @throws Exception */ - protected Mojo lookupMojo( String groupId, String artifactId, String version, String goal, PlexusConfiguration pluginConfiguration ) + protected Mojo lookupMojo( String groupId, String artifactId, String version, String goal, + PlexusConfiguration pluginConfiguration ) throws Exception { validateContainerStatus(); @@ -172,14 +182,14 @@ Mojo mojo = (Mojo) lookup( Mojo.ROLE, groupId + ":" + artifactId + ":" + version + ":" + goal ); Log mojoLogger = new DefaultLog( container.getLoggerManager().getLoggerForComponent( Mojo.ROLE ) ); - + mojo.setLog( mojoLogger ); if ( pluginConfiguration != null ) { /* requires v10 of plexus container for lookup on expression evaluator - ExpressionEvaluator evaluator = (ExpressionEvaluator) getContainer().lookup( ExpressionEvaluator.ROLE, "stub-evaluator" ); - */ + ExpressionEvaluator evaluator = (ExpressionEvaluator) getContainer().lookup( ExpressionEvaluator.ROLE, "stub-evaluator" ); + */ ExpressionEvaluator evaluator = new ResolverExpressionEvaluatorStub(); configurator.configureComponent( mojo, pluginConfiguration, evaluator, getContainer().getContainerRealm() ); @@ -188,7 +198,12 @@ return mojo; } - + /** + * @param artifactId + * @param pom + * @return the plexus configuration + * @throws Exception + */ protected PlexusConfiguration extractPluginConfiguration( String artifactId, File pom ) throws Exception { @@ -199,6 +214,12 @@ return extractPluginConfiguration( artifactId, pomDom ); } + /** + * @param artifactId + * @param pomDom + * @return the plexus configuration + * @throws Exception + */ protected PlexusConfiguration extractPluginConfiguration( String artifactId, Xpp3Dom pomDom ) throws Exception { @@ -238,6 +259,15 @@ return new XmlPlexusConfiguration( pluginConfigurationElement ); } + /** + * Configure the mojo + * + * @param mojo + * @param artifactId + * @param pom + * @return a Mojo instance + * @throws Exception + */ protected Mojo configureMojo( Mojo mojo, String artifactId, File pom ) throws Exception { @@ -247,18 +277,17 @@ ExpressionEvaluator evaluator = new ResolverExpressionEvaluatorStub(); - configurator.configureComponent( mojo, pluginConfiguration, evaluator, getContainer().getContainerRealm() ); return mojo; } /** - * configure the mojo with the given plexus configuration + * Configure the mojo with the given plexus configuration * * @param mojo * @param pluginConfiguration - * @return + * @return a Mojo instance * @throws Exception */ protected Mojo configureMojo( Mojo mojo, PlexusConfiguration pluginConfiguration ) @@ -273,7 +302,6 @@ return mojo; } - /** * convience method to obtain the value of a variable on a mojo that might not have a getter. * @@ -294,7 +322,6 @@ return field.get( object ); } - /** * convience method to obtain all variables and values from the mojo (including its superclasses) * @@ -325,9 +352,9 @@ Field[] fields = clazz.getDeclaredFields(); - AccessibleObject.setAccessible( fields, true); + AccessibleObject.setAccessible( fields, true ); - for (int i = 0; i < fields.length; ++i) + for ( int i = 0; i < fields.length; ++i ) { Field field = fields[i]; @@ -337,7 +364,7 @@ Class superclass = clazz.getSuperclass(); - if ( !Object.class.equals( superclass ) ) + if ( !Object.class.equals( superclass ) ) { map.putAll( getVariablesAndValuesFromObject( superclass, object ) ); } @@ -345,7 +372,6 @@ return map; } - /** * convience method to set values to variables in objects that don't have setters * @param object @@ -360,8 +386,9 @@ field.setAccessible( true ); - field.set(object, value ); + field.set( object, value ); } + /** * sometimes the parent element might contain the correct value so generalize that access * @@ -372,23 +399,23 @@ * @return * @throws Exception */ - - private String resolveFromRootThenParent( Xpp3Dom pluginPomDom, String element ) throws Exception + private String resolveFromRootThenParent( Xpp3Dom pluginPomDom, String element ) + throws Exception { Xpp3Dom elementDom = pluginPomDom.getChild( element ); // parent might have the group Id so resolve it if ( elementDom == null ) { - Xpp3Dom pluginParentDom = pluginPomDom.getChild("parent"); + Xpp3Dom pluginParentDom = pluginPomDom.getChild( "parent" ); - if (pluginParentDom != null ) + if ( pluginParentDom != null ) { elementDom = pluginParentDom.getChild( element ); if ( elementDom == null ) { - throw new Exception ( "unable to determine " + element ); + throw new Exception( "unable to determine " + element ); } else { @@ -397,7 +424,7 @@ } else { - throw new Exception ( "unable to determine " + element ); + throw new Exception( "unable to determine " + element ); } } else @@ -406,8 +433,7 @@ } } - - /* + /** * We should make sure this is called in each method that makes use of the container, * otherwise we throw ugly NPE's * @@ -415,14 +441,16 @@ * * @throws Exception */ - private void validateContainerStatus() throws Exception { - if (container != null) + private void validateContainerStatus() + throws Exception + { + if ( container != null ) { return; } else { - throw new Exception("container is null, make sure super.setUp() is called"); + throw new Exception( "container is null, make sure super.setUp() is called" ); } } } Modified: maven/shared/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/ResolverExpressionEvaluatorStub.java URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/ResolverExpressionEvaluatorStub.java?view=diff&rev=542343&r1=542342&r2=542343 ============================================================================== --- maven/shared/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/ResolverExpressionEvaluatorStub.java (original) +++ maven/shared/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/ResolverExpressionEvaluatorStub.java Mon May 28 15:07:25 2007 @@ -36,7 +36,9 @@ public class ResolverExpressionEvaluatorStub implements ExpressionEvaluator { - + /** + * @see org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator#evaluate(java.lang.String) + */ public Object evaluate( String expr ) throws ExpressionEvaluationException { @@ -121,6 +123,9 @@ return expr; } + /** + * @see org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator#alignToBaseDirectory(java.io.File) + */ public File alignToBaseDirectory( File file ) { if ( file.getAbsolutePath().startsWith( PlexusTestCase.getBasedir() ) ) Modified: maven/shared/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/ArtifactStub.java URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/ArtifactStub.java?view=diff&rev=542343&r1=542342&r2=542343 ============================================================================== --- maven/shared/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/ArtifactStub.java (original) +++ maven/shared/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/ArtifactStub.java Mon May 28 15:07:25 2007 @@ -34,14 +34,13 @@ /** * Stub class for [EMAIL PROTECTED] Artifact} testing. - * + * * @author jesse * @version $Id$ */ public class ArtifactStub implements Artifact { - private String groupId; private String artifactId; @@ -56,228 +55,455 @@ private File file; + /** + * By default, return <code>0</code> + * + * @see java.lang.Comparable#compareTo(java.lang.Object) + */ public int compareTo( Object object ) { return 0; } + /** + * @see org.apache.maven.artifact.Artifact#getGroupId() + */ public String getGroupId() { return groupId; } + /** + * @see org.apache.maven.artifact.Artifact#getArtifactId() + */ public String getArtifactId() { return artifactId; } + /** + * @see org.apache.maven.artifact.Artifact#getVersion() + */ public String getVersion() { return version; } + /** + * @see org.apache.maven.artifact.Artifact#setVersion(java.lang.String) + */ public void setVersion( String version ) { this.version = version; } + /** + * @see org.apache.maven.artifact.Artifact#getScope() + */ public String getScope() { return scope; } + /** + * @see org.apache.maven.artifact.Artifact#getType() + */ public String getType() { return type; } + /** + * Set a new type + * + * @param type + */ public void setType( String type ) { this.type = type; } + /** + * @see org.apache.maven.artifact.Artifact#getClassifier() + */ public String getClassifier() { return classifier; } + /** + * @see org.apache.maven.artifact.Artifact#hasClassifier() + */ public boolean hasClassifier() { return classifier != null; } + /** + * @see org.apache.maven.artifact.Artifact#getFile() + */ public File getFile() { return file; } + /** + * @see org.apache.maven.artifact.Artifact#setFile(java.io.File) + */ public void setFile( File file ) { this.file = file; } + /** + * By default, return <code>null</code>. + * + * @see org.apache.maven.artifact.Artifact#getBaseVersion() + */ public String getBaseVersion() { return null; } + /** + * By default, do nothing. + * + * @see org.apache.maven.artifact.Artifact#setBaseVersion(java.lang.String) + */ public void setBaseVersion( String string ) { + // nop } + /** + * By default, return <code>null</code>. + * + * @see org.apache.maven.artifact.Artifact#getId() + */ public String getId() { return null; } + /** + * By default, return <code>null</code>. + * + * @see org.apache.maven.artifact.Artifact#getDependencyConflictId() + */ public String getDependencyConflictId() { return null; } + /** + * By default, do nothing. + * + * @see org.apache.maven.artifact.Artifact#addMetadata(org.apache.maven.artifact.metadata.ArtifactMetadata) + */ public void addMetadata( ArtifactMetadata artifactMetadata ) { + // nop } + /** + * By default, return <code>null</code>. + * + * @see org.apache.maven.artifact.Artifact#getMetadataList() + */ public Collection getMetadataList() { return null; } + /** + * By default, do nothing. + * + * @see org.apache.maven.artifact.Artifact#setRepository(org.apache.maven.artifact.repository.ArtifactRepository) + */ public void setRepository( ArtifactRepository artifactRepository ) { + // nop } + /** + * By default, return <code>null</code>. + * + * @see org.apache.maven.artifact.Artifact#getRepository() + */ public ArtifactRepository getRepository() { return null; } + /** + * By default, do nothing. + * + * @see org.apache.maven.artifact.Artifact#updateVersion(java.lang.String, org.apache.maven.artifact.repository.ArtifactRepository) + */ public void updateVersion( String string, ArtifactRepository artifactRepository ) { + // nop } + /** + * By default, return <code>null</code>. + * + * @see org.apache.maven.artifact.Artifact#getDownloadUrl() + */ public String getDownloadUrl() { return null; } + /** + * By default, do nothing. + * + * @see org.apache.maven.artifact.Artifact#setDownloadUrl(java.lang.String) + */ public void setDownloadUrl( String string ) { + // nop } + /** + * By default, return <code>null</code>. + * + * @see org.apache.maven.artifact.Artifact#getDependencyFilter() + */ public ArtifactFilter getDependencyFilter() { return null; } + /** + * By default, do nothing. + * + * @see org.apache.maven.artifact.Artifact#setDependencyFilter(org.apache.maven.artifact.resolver.filter.ArtifactFilter) + */ public void setDependencyFilter( ArtifactFilter artifactFilter ) { + // nop } + /** + * By default, return <code>null</code>. + * + * @see org.apache.maven.artifact.Artifact#getArtifactHandler() + */ public ArtifactHandler getArtifactHandler() { return null; } + /** + * By default, return <code>null</code>. + * + * @see org.apache.maven.artifact.Artifact#getDependencyTrail() + */ public List getDependencyTrail() { return null; } + /** + * By default, do nothing. + * + * @see org.apache.maven.artifact.Artifact#setDependencyTrail(java.util.List) + */ public void setDependencyTrail( List list ) { + // nop } + /** + * @see org.apache.maven.artifact.Artifact#setScope(java.lang.String) + */ public void setScope( String scope ) { this.scope = scope; } + /** + * By default, return <code>null</code>. + * + * @see org.apache.maven.artifact.Artifact#getVersionRange() + */ public VersionRange getVersionRange() { return null; } + /** + * By default, do nothing. + * + * @see org.apache.maven.artifact.Artifact#setVersionRange(org.apache.maven.artifact.versioning.VersionRange) + */ public void setVersionRange( VersionRange versionRange ) { + // nop } + /** + * By default, do nothing. + * + * @see org.apache.maven.artifact.Artifact#selectVersion(java.lang.String) + */ public void selectVersion( String string ) { + // nop } + /** + * @see org.apache.maven.artifact.Artifact#setGroupId(java.lang.String) + */ public void setGroupId( String groupId ) { this.groupId = groupId; } + /** + * @see org.apache.maven.artifact.Artifact#setArtifactId(java.lang.String) + */ public void setArtifactId( String artifactId ) { this.artifactId = artifactId; } + /** + * By default, return <code>false</code>. + * + * @see org.apache.maven.artifact.Artifact#isSnapshot() + */ public boolean isSnapshot() { return false; } + /** + * By default, do nothing. + * + * @see org.apache.maven.artifact.Artifact#setResolved(boolean) + */ public void setResolved( boolean b ) { + // nop } + /** + * By default, return <code>false</code>. + * + * @see org.apache.maven.artifact.Artifact#isResolved() + */ public boolean isResolved() { return false; } + /** + * By default, do nothing. + * + * @see org.apache.maven.artifact.Artifact#setResolvedVersion(java.lang.String) + */ public void setResolvedVersion( String string ) { + // nop } + /** + * By default, do nothing. + * + * @see org.apache.maven.artifact.Artifact#setArtifactHandler(org.apache.maven.artifact.handler.ArtifactHandler) + */ public void setArtifactHandler( ArtifactHandler artifactHandler ) { + // nop } + /** + * By default, return <code>false</code>. + * + * @see org.apache.maven.artifact.Artifact#isRelease() + */ public boolean isRelease() { return false; } + /** + * By default, do nothing. + * + * @see org.apache.maven.artifact.Artifact#setRelease(boolean) + */ public void setRelease( boolean b ) { + // nop } + /** + * By default, return <code>null</code>. + * + * @see org.apache.maven.artifact.Artifact#getAvailableVersions() + */ public List getAvailableVersions() { return null; } + /** + * By default, do nothing. + * + * @see org.apache.maven.artifact.Artifact#setAvailableVersions(java.util.List) + */ public void setAvailableVersions( List list ) { + // nop } + /** + * By default, return <code>false</code>. + * + * @see org.apache.maven.artifact.Artifact#isOptional() + */ public boolean isOptional() { return false; } + /** + * By default, do nothing. + * + * @param b + */ public void setOptional( boolean b ) { + // nop } + /** + * By default, return <code>null</code>. + * + * @see org.apache.maven.artifact.Artifact#getSelectedVersion() + */ public ArtifactVersion getSelectedVersion() throws OverConstrainedVersionException { return null; } + /** + * By default, return <code>false</code>. + * + * @see org.apache.maven.artifact.Artifact#isSelectedVersionKnown() + */ public boolean isSelectedVersionKnown() throws OverConstrainedVersionException { return false; } + /** + * @see java.lang.Object#toString() + */ public String toString() { StringBuffer sb = new StringBuffer(); Modified: maven/shared/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/MavenProjectStub.java URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/MavenProjectStub.java?view=diff&rev=542343&r1=542342&r2=542343 ============================================================================== --- maven/shared/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/MavenProjectStub.java (original) +++ maven/shared/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/MavenProjectStub.java Mon May 28 15:07:25 2007 @@ -56,7 +56,8 @@ import org.codehaus.plexus.util.xml.Xpp3Dom; /** - * very simple stub of maven project, going to take a lot of work to make it useful as a stub though + * Very simple stub of <code>MavenProject<code> object, going to take a lot of work to make it + * useful as a stub though. * * @author jesse * @version $Id$ @@ -152,6 +153,9 @@ private List licenses; + /** + * Default constructor + */ public MavenProjectStub() { this( (Model) new Model() ); @@ -172,40 +176,65 @@ super( (Model) null ); } + /** + * @param mavenProject + * @return an empty String + * @throws IOException if any + */ public String getModulePathAdjustment( MavenProject mavenProject ) throws IOException { return ""; } + /** + * @see org.apache.maven.project.MavenProject#getArtifact() + */ public Artifact getArtifact() { return artifact; } + /** + * @see org.apache.maven.project.MavenProject#setArtifact(org.apache.maven.artifact.Artifact) + */ public void setArtifact( Artifact artifact ) { this.artifact = artifact; } + /** + * @see org.apache.maven.project.MavenProject#getModel() + */ public Model getModel() { return model; } + /** + * @see org.apache.maven.project.MavenProject#getParent() + */ public MavenProject getParent() { return parent; } + /** + * @see org.apache.maven.project.MavenProject#setParent(org.apache.maven.project.MavenProject) + */ public void setParent( MavenProject mavenProject ) { this.parent = mavenProject; } + /** + * By default, do nothing. + * + * @see org.apache.maven.project.MavenProject#setRemoteArtifactRepositories(java.util.List) + */ public void setRemoteArtifactRepositories( List list ) { - + // nop } /** @@ -218,36 +247,51 @@ return Collections.EMPTY_LIST; } + /** + * @see org.apache.maven.project.MavenProject#hasParent() + */ public boolean hasParent() { if ( parent != null ) { return true; } - else - { - return false; - } + + return false; } + /** + * @see org.apache.maven.project.MavenProject#getFile() + */ public File getFile() { return file; } + /** + * @see org.apache.maven.project.MavenProject#setFile(java.io.File) + */ public void setFile( File file ) { this.file = file; } + /** + * @see org.apache.maven.project.MavenProject#getBasedir() + */ public File getBasedir() { return new File( PlexusTestCase.getBasedir() ); } + /** + * By default, do nothing. + * + * @see org.apache.maven.project.MavenProject#setDependencies(java.util.List) + */ public void setDependencies( List list ) { - + // nop } /** @@ -260,11 +304,19 @@ return Collections.EMPTY_LIST; } + /** + * By default, return <code>null</code>. + * + * @see org.apache.maven.project.MavenProject#getDependencyManagement() + */ public DependencyManagement getDependencyManagement() { return null; } + /** + * @see org.apache.maven.project.MavenProject#addCompileSourceRoot(java.lang.String) + */ public void addCompileSourceRoot( String string ) { if ( compileSourceRoots == null ) @@ -277,6 +329,9 @@ } } + /** + * @see org.apache.maven.project.MavenProject#addScriptSourceRoot(java.lang.String) + */ public void addScriptSourceRoot( String string ) { if ( scriptSourceRoots == null ) @@ -289,6 +344,9 @@ } } + /** + * @see org.apache.maven.project.MavenProject#addTestCompileSourceRoot(java.lang.String) + */ public void addTestCompileSourceRoot( String string ) { if ( testCompileSourceRoots == null ) @@ -301,185 +359,293 @@ } } + /** + * @see org.apache.maven.project.MavenProject#getCompileSourceRoots() + */ public List getCompileSourceRoots() { return compileSourceRoots; } + /** + * @see org.apache.maven.project.MavenProject#getScriptSourceRoots() + */ public List getScriptSourceRoots() { return scriptSourceRoots; } + /** + * @see org.apache.maven.project.MavenProject#getTestCompileSourceRoots() + */ public List getTestCompileSourceRoots() { return testCompileSourceRoots; } + /** + * @see org.apache.maven.project.MavenProject#getCompileClasspathElements() + */ public List getCompileClasspathElements() throws DependencyResolutionRequiredException { return compileSourceRoots; } + /** + * @param compileArtifacts + */ public void setCompileArtifacts( List compileArtifacts ) { this.compileArtifacts = compileArtifacts; } + /** + * @see org.apache.maven.project.MavenProject#getCompileArtifacts() + */ public List getCompileArtifacts() { return compileArtifacts; } + /** + * @see org.apache.maven.project.MavenProject#getCompileDependencies() + */ public List getCompileDependencies() { return compileDependencies; } + /** + * @see org.apache.maven.project.MavenProject#getTestClasspathElements() + */ public List getTestClasspathElements() throws DependencyResolutionRequiredException { return testClasspathElements; } + /** + * @see org.apache.maven.project.MavenProject#getTestArtifacts() + */ public List getTestArtifacts() { return testArtifacts; } + /** + * @see org.apache.maven.project.MavenProject#getTestDependencies() + */ public List getTestDependencies() { return testDependencies; } + /** + * @see org.apache.maven.project.MavenProject#getRuntimeClasspathElements() + */ public List getRuntimeClasspathElements() throws DependencyResolutionRequiredException { return runtimeClasspathElements; } + /** + * @see org.apache.maven.project.MavenProject#getRuntimeArtifacts() + */ public List getRuntimeArtifacts() { return runtimeArtifacts; } + /** + * @see org.apache.maven.project.MavenProject#getRuntimeDependencies() + */ public List getRuntimeDependencies() { return runtimeDependencies; } + /** + * @see org.apache.maven.project.MavenProject#getSystemClasspathElements() + */ public List getSystemClasspathElements() throws DependencyResolutionRequiredException { return systemClasspathElements; } + /** + * @see org.apache.maven.project.MavenProject#getSystemArtifacts() + */ public List getSystemArtifacts() { return systemArtifacts; } + /** + * @param runtimeClasspathElements + */ public void setRuntimeClasspathElements( List runtimeClasspathElements ) { this.runtimeClasspathElements = runtimeClasspathElements; } + /** + * @param attachedArtifacts + */ public void setAttachedArtifacts( List attachedArtifacts ) { this.attachedArtifacts = attachedArtifacts; } + /** + * @param compileSourceRoots + */ public void setCompileSourceRoots( List compileSourceRoots ) { this.compileSourceRoots = compileSourceRoots; } + /** + * @param testCompileSourceRoots + */ public void setTestCompileSourceRoots( List testCompileSourceRoots ) { this.testCompileSourceRoots = testCompileSourceRoots; } + /** + * @param scriptSourceRoots + */ public void setScriptSourceRoots( List scriptSourceRoots ) { this.scriptSourceRoots = scriptSourceRoots; } + /** + * @param artifactMap + */ public void setArtifactMap( Map artifactMap ) { this.artifactMap = artifactMap; } + /** + * @param pluginArtifactMap + */ public void setPluginArtifactMap( Map pluginArtifactMap ) { this.pluginArtifactMap = pluginArtifactMap; } + /** + * @param reportArtifactMap + */ public void setReportArtifactMap( Map reportArtifactMap ) { this.reportArtifactMap = reportArtifactMap; } + /** + * @param extensionArtifactMap + */ public void setExtensionArtifactMap( Map extensionArtifactMap ) { this.extensionArtifactMap = extensionArtifactMap; } + /** + * @param projectReferences + */ public void setProjectReferences( Map projectReferences ) { this.projectReferences = projectReferences; } + /** + * @param buildOverlay + */ public void setBuildOverlay( Build buildOverlay ) { this.buildOverlay = buildOverlay; } + /** + * @param compileDependencies + */ public void setCompileDependencies( List compileDependencies ) { this.compileDependencies = compileDependencies; } + /** + * @param systemDependencies + */ public void setSystemDependencies( List systemDependencies ) { this.systemDependencies = systemDependencies; } + /** + * @param testClasspathElements + */ public void setTestClasspathElements( List testClasspathElements ) { this.testClasspathElements = testClasspathElements; } + /** + * @param testDependencies + */ public void setTestDependencies( List testDependencies ) { this.testDependencies = testDependencies; } + /** + * @param systemClasspathElements + */ public void setSystemClasspathElements( List systemClasspathElements ) { this.systemClasspathElements = systemClasspathElements; } + /** + * @param systemArtifacts + */ public void setSystemArtifacts( List systemArtifacts ) { this.systemArtifacts = systemArtifacts; } + /** + * @param testArtifacts + */ public void setTestArtifacts( List testArtifacts ) { this.testArtifacts = testArtifacts; } + /** + * @param runtimeArtifacts + */ public void setRuntimeArtifacts( List runtimeArtifacts ) { this.runtimeArtifacts = runtimeArtifacts; } + /** + * @param runtimeDependencies + */ public void setRuntimeDependencies( List runtimeDependencies ) { this.runtimeDependencies = runtimeDependencies; } + /** + * @param model + */ public void setModel( Model model ) { this.model = model; @@ -490,159 +656,278 @@ return systemDependencies; } + /** + * @see org.apache.maven.project.MavenProject#setModelVersion(java.lang.String) + */ public void setModelVersion( String string ) { this.modelVersion = string; } + /** + * @see org.apache.maven.project.MavenProject#getModelVersion() + */ public String getModelVersion() { return modelVersion; } + /** + * By default, return an empty String. + * + * @see org.apache.maven.project.MavenProject#getId() + */ public String getId() { return ""; } + /** + * @see org.apache.maven.project.MavenProject#setGroupId(java.lang.String) + */ public void setGroupId( String string ) { this.groupId = string; } + /** + * @see org.apache.maven.project.MavenProject#getGroupId() + */ public String getGroupId() { return groupId; } + /** + * @see org.apache.maven.project.MavenProject#setArtifactId(java.lang.String) + */ public void setArtifactId( String string ) { this.artifactId = string; } + /** + * @see org.apache.maven.project.MavenProject#getArtifactId() + */ public String getArtifactId() { return artifactId; } + /** + * @see org.apache.maven.project.MavenProject#setName(java.lang.String) + */ public void setName( String string ) { this.name = string; } + /** + * @see org.apache.maven.project.MavenProject#getName() + */ public String getName() { return name; } + /** + * @see org.apache.maven.project.MavenProject#setVersion(java.lang.String) + */ public void setVersion( String string ) { this.version = string; } + /** + * @see org.apache.maven.project.MavenProject#getVersion() + */ public String getVersion() { return version; } + /** + * @see org.apache.maven.project.MavenProject#getPackaging() + */ public String getPackaging() { return packaging; } + /** + * @see org.apache.maven.project.MavenProject#setPackaging(java.lang.String) + */ public void setPackaging( String string ) { this.packaging = string; } + /** + * @see org.apache.maven.project.MavenProject#setInceptionYear(java.lang.String) + */ public void setInceptionYear( String string ) { this.inceptionYear = string; } + /** + * @see org.apache.maven.project.MavenProject#getInceptionYear() + */ public String getInceptionYear() { return inceptionYear; } + /** + * @see org.apache.maven.project.MavenProject#setUrl(java.lang.String) + */ public void setUrl( String string ) { this.url = string; } + /** + * @see org.apache.maven.project.MavenProject#getUrl() + */ public String getUrl() { return url; } + /** + * By default, return <code>null</code>. + * + * @see org.apache.maven.project.MavenProject#getPrerequisites() + */ public Prerequisites getPrerequisites() { return null; } + /** + * By default, do nothing. + * + * @see org.apache.maven.project.MavenProject#setIssueManagement(org.apache.maven.model.IssueManagement) + */ public void setIssueManagement( IssueManagement issueManagement ) { - + // nop } + /** + * By default, return <code>null</code>. + * + * @see org.apache.maven.project.MavenProject#getCiManagement() + */ public CiManagement getCiManagement() { return null; } + /** + * By default, do nothing. + * + * @see org.apache.maven.project.MavenProject#setCiManagement(org.apache.maven.model.CiManagement) + */ public void setCiManagement( CiManagement ciManagement ) { - + // nop } + /** + * By default, return <code>null</code>. + * + * @see org.apache.maven.project.MavenProject#getIssueManagement() + */ public IssueManagement getIssueManagement() { return null; } + /** + * By default, do nothing. + * + * @see org.apache.maven.project.MavenProject#setDistributionManagement(org.apache.maven.model.DistributionManagement) + */ public void setDistributionManagement( DistributionManagement distributionManagement ) { - + // nop } + /** + * By default, return <code>null</code>. + * + * @see org.apache.maven.project.MavenProject#getDistributionManagement() + */ public DistributionManagement getDistributionManagement() { return null; } + /** + * @see org.apache.maven.project.MavenProject#setDescription(java.lang.String) + */ public void setDescription( String string ) { this.description = string; } + /** + * @see org.apache.maven.project.MavenProject#getDescription() + */ public String getDescription() { return description; } + /** + * By default, do nothing. + * + * @see org.apache.maven.project.MavenProject#setOrganization(org.apache.maven.model.Organization) + */ public void setOrganization( Organization organization ) { - + // nop } + /** + * By default, return <code>null</code>. + * + * @see org.apache.maven.project.MavenProject#getOrganization() + */ public Organization getOrganization() { return null; } + /** + * By default, do nothing. + * + * @see org.apache.maven.project.MavenProject#setScm(org.apache.maven.model.Scm) + */ public void setScm( Scm scm ) { - + // nop } + /** + * By default, return <code>null</code>. + * + * @see org.apache.maven.project.MavenProject#getScm() + */ public Scm getScm() { return null; } + /** + * By default, do nothing. + * + * @see org.apache.maven.project.MavenProject#setMailingLists(java.util.List) + */ public void setMailingLists( List list ) { - + // nop } /** @@ -655,14 +940,24 @@ return Collections.EMPTY_LIST; } + /** + * By default, do nothing. + * + * @see org.apache.maven.project.MavenProject#addMailingList(org.apache.maven.model.MailingList) + */ public void addMailingList( MailingList mailingList ) { - + // nop } + /** + * By default, do nothing. + * + * @see org.apache.maven.project.MavenProject#setDevelopers(java.util.List) + */ public void setDevelopers( List list ) { - + // nop } /** @@ -675,14 +970,24 @@ return Collections.EMPTY_LIST; } + /** + * By default, do nothing. + * + * @see org.apache.maven.project.MavenProject#addDeveloper(org.apache.maven.model.Developer) + */ public void addDeveloper( Developer developer ) { - + // nop } + /** + * By default, do nothing. + * + * @see org.apache.maven.project.MavenProject#setContributors(java.util.List) + */ public void setContributors( List list ) { - + // nop } /** @@ -695,16 +1000,31 @@ return Collections.EMPTY_LIST; } + /** + * By default, do nothing. + * + * @see org.apache.maven.project.MavenProject#addContributor(org.apache.maven.model.Contributor) + */ public void addContributor( Contributor contributor ) { - + // nop } + /** + * By default, do nothing. + * + * @see org.apache.maven.project.MavenProject#setBuild(org.apache.maven.model.Build) + */ public void setBuild( Build build ) { - + // nop } + /** + * By default, return <code>null</code>. + * + * @see org.apache.maven.project.MavenProject#getBuild() + */ public Build getBuild() { return null; @@ -730,44 +1050,80 @@ return Collections.EMPTY_LIST; } + /** + * By default, do nothing. + * + * @see org.apache.maven.project.MavenProject#addResource(org.apache.maven.model.Resource) + */ public void addResource( Resource resource ) { - + // nop } + /** + * By default, do nothing. + * + * @see org.apache.maven.project.MavenProject#addTestResource(org.apache.maven.model.Resource) + */ public void addTestResource( Resource resource ) { - + // nop } + /** + * By default, do nothing. + * + * @see org.apache.maven.project.MavenProject#setReporting(org.apache.maven.model.Reporting) + */ public void setReporting( Reporting reporting ) { - + // nop } + /** + * By default, return <code>null</code>. + * + * @see org.apache.maven.project.MavenProject#getReporting() + */ public Reporting getReporting() { return null; } + /** + * @see org.apache.maven.project.MavenProject#setLicenses(java.util.List) + */ public void setLicenses( List licenses ) { this.licenses = licenses; } + /** + * @see org.apache.maven.project.MavenProject#getLicenses() + */ public List getLicenses() { return licenses; } + /** + * By default, do nothing. + * + * @see org.apache.maven.project.MavenProject#addLicense(org.apache.maven.model.License) + */ public void addLicense( License license ) { - + // nop } + /** + * By default, do nothing. + * + * @see org.apache.maven.project.MavenProject#setArtifacts(java.util.Set) + */ public void setArtifacts( Set set ) { - + // nop } /** @@ -790,9 +1146,14 @@ return Collections.EMPTY_MAP; } + /** + * By default, do nothing. + * + * @see org.apache.maven.project.MavenProject#setPluginArtifacts(java.util.Set) + */ public void setPluginArtifacts( Set set ) { - + // nop } /** @@ -815,9 +1176,14 @@ return Collections.EMPTY_MAP; } + /** + * By default, do nothing. + * + * @see org.apache.maven.project.MavenProject#setReportArtifacts(java.util.Set) + */ public void setReportArtifacts( Set set ) { - + // nop } /** @@ -840,9 +1206,14 @@ return Collections.EMPTY_MAP; } + /** + * By default, do nothing. + * + * @see org.apache.maven.project.MavenProject#setExtensionArtifacts(java.util.Set) + */ public void setExtensionArtifacts( Set set ) { - + // nop } /** @@ -865,11 +1236,21 @@ return Collections.EMPTY_MAP; } + /** + * By default, do nothing. + * + * @see org.apache.maven.project.MavenProject#setParentArtifact(org.apache.maven.artifact.Artifact) + */ public void setParentArtifact( Artifact artifact ) { - + // nop } + /** + * By default, return <code>null</code>. + * + * @see org.apache.maven.project.MavenProject#getParentArtifact() + */ public Artifact getParentArtifact() { return null; @@ -915,41 +1296,73 @@ return Collections.EMPTY_LIST; } + /** + * By default, return <code>null</code>. + * + * @see org.apache.maven.project.MavenProject#getPluginManagement() + */ public PluginManagement getPluginManagement() { return null; } + /** + * By default, do nothing. + * + * @see org.apache.maven.project.MavenProject#addPlugin(org.apache.maven.model.Plugin) + */ public void addPlugin( Plugin plugin ) { - + // nop } + /** + * By default, do nothing. + * + * @param plugin + */ public void injectPluginManagementInfo( Plugin plugin ) { - + // nop } + /** + * @see org.apache.maven.project.MavenProject#getCollectedProjects() + */ public List getCollectedProjects() { return collectedProjects; } + /** + * @see org.apache.maven.project.MavenProject#setCollectedProjects(java.util.List) + */ public void setCollectedProjects( List list ) { this.collectedProjects = list; } + /** + * @see org.apache.maven.project.MavenProject#setPluginArtifactRepositories(java.util.List) + */ public void setPluginArtifactRepositories( List list ) { this.pluginArtifactRepositories = list; } + /** + * @see org.apache.maven.project.MavenProject#getPluginArtifactRepositories() + */ public List getPluginArtifactRepositories() { return pluginArtifactRepositories; } + /** + * By default, return <code>null</code>. + * + * @see org.apache.maven.project.MavenProject#getDistributionManagementArtifactRepository() + */ public ArtifactRepository getDistributionManagementArtifactRepository() { return null; @@ -965,16 +1378,25 @@ return Collections.EMPTY_LIST; } + /** + * @see org.apache.maven.project.MavenProject#setActiveProfiles(java.util.List) + */ public void setActiveProfiles( List list ) { activeProfiles = list; } + /** + * @see org.apache.maven.project.MavenProject#getActiveProfiles() + */ public List getActiveProfiles() { return activeProfiles; } + /** + * @see org.apache.maven.project.MavenProject#addAttachedArtifact(org.apache.maven.artifact.Artifact) + */ public void addAttachedArtifact( Artifact artifact ) { if ( attachedArtifacts == null ) @@ -987,68 +1409,119 @@ } } + /** + * @see org.apache.maven.project.MavenProject#getAttachedArtifacts() + */ public List getAttachedArtifacts() { return attachedArtifacts; } + /** + * By default, return <code>null</code>. + * + * @see org.apache.maven.project.MavenProject#getGoalConfiguration(java.lang.String, java.lang.String, java.lang.String, java.lang.String) + */ public Xpp3Dom getGoalConfiguration( String string, String string1, String string2, String string3 ) { return null; } + /** + * By default, return <code>null</code>. + * + * @see org.apache.maven.project.MavenProject#getReportConfiguration(java.lang.String, java.lang.String, java.lang.String) + */ public Xpp3Dom getReportConfiguration( String string, String string1, String string2 ) { return null; } + /** + * By default, return <code>null</code>. + * + * @see org.apache.maven.project.MavenProject#getExecutionProject() + */ public MavenProject getExecutionProject() { return null; } + /** + * By default, do nothing. + * + * @see org.apache.maven.project.MavenProject#setExecutionProject(org.apache.maven.project.MavenProject) + */ public void setExecutionProject( MavenProject mavenProject ) { - + // nop } + /** + * By default, do nothing. + * + * @see org.apache.maven.project.MavenProject#writeModel(java.io.Writer) + */ public void writeModel( Writer writer ) throws IOException { - + // nop } + /** + * By default, do nothing. + * + * @see org.apache.maven.project.MavenProject#writeOriginalModel(java.io.Writer) + */ public void writeOriginalModel( Writer writer ) throws IOException { - + // nop } + /** + * @see org.apache.maven.project.MavenProject#getDependencyArtifacts() + */ public Set getDependencyArtifacts() { return dependencyArtifacts; } + /** + * @see org.apache.maven.project.MavenProject#setDependencyArtifacts(java.util.Set) + */ public void setDependencyArtifacts( Set set ) { this.dependencyArtifacts = set; } + /** + * @see org.apache.maven.project.MavenProject#setReleaseArtifactRepository(org.apache.maven.artifact.repository.ArtifactRepository) + */ public void setReleaseArtifactRepository( ArtifactRepository artifactRepository ) { this.releaseArtifactRepository = artifactRepository; } + /** + * @see org.apache.maven.project.MavenProject#setSnapshotArtifactRepository(org.apache.maven.artifact.repository.ArtifactRepository) + */ public void setSnapshotArtifactRepository( ArtifactRepository artifactRepository ) { this.snapshotArtifactRepository = artifactRepository; } + /** + * @see org.apache.maven.project.MavenProject#setOriginalModel(org.apache.maven.model.Model) + */ public void setOriginalModel( Model model ) { this.originalModel = model; } + /** + * @see org.apache.maven.project.MavenProject#getOriginalModel() + */ public Model getOriginalModel() { return originalModel; @@ -1075,16 +1548,31 @@ return Collections.EMPTY_SET; } + /** + * By default, do nothing. + * + * @see org.apache.maven.project.MavenProject#addProjectReference(org.apache.maven.project.MavenProject) + */ public void addProjectReference( MavenProject mavenProject ) { - + // nop } + /** + * By default, do nothing. + * + * @see org.apache.maven.project.MavenProject#attachArtifact(java.lang.String, java.lang.String, java.io.File) + */ public void attachArtifact( String string, String string1, File file ) { - + // nop } + /** + * By default, return a new instance of <code>Properties</code>. + * + * @see org.apache.maven.project.MavenProject#getProperties() + */ public Properties getProperties() { return new Properties(); @@ -1110,21 +1598,35 @@ return Collections.EMPTY_MAP; } + /** + * @see org.apache.maven.project.MavenProject#isExecutionRoot() + */ public boolean isExecutionRoot() { return executionRoot; } + /** + * @see org.apache.maven.project.MavenProject#setExecutionRoot(boolean) + */ public void setExecutionRoot( boolean b ) { this.executionRoot = b; } + /** + * @see org.apache.maven.project.MavenProject#getDefaultGoal() + */ public String getDefaultGoal() { return defaultGoal; } + /** + * By default, return <code>null</code>. + * + * @see org.apache.maven.project.MavenProject#replaceWithActiveArtifact(org.apache.maven.artifact.Artifact) + */ public Artifact replaceWithActiveArtifact( Artifact artifact ) { return null;