jvanzyl 2003/12/03 23:45:36
Modified: maven-model/src/java/org/apache/maven/model Model.java
Log:
o artifacts are generated from the dependencies by the project builder.
Revision Changes Path
1.13 +1 -50
maven-components/maven-model/src/java/org/apache/maven/model/Model.java
Index: Model.java
===================================================================
RCS file:
/home/cvs/maven-components/maven-model/src/java/org/apache/maven/model/Model.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- Model.java 4 Dec 2003 07:43:31 -0000 1.12
+++ Model.java 4 Dec 2003 07:45:36 -0000 1.13
@@ -59,7 +59,6 @@
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
-import java.util.Iterator;
import java.util.List;
import java.util.Map;
@@ -169,9 +168,6 @@
/** Project group id. */
private String groupId;
- /** Artifact list. */
- private List artifactList;
-
/**
* Reports to be generated for a project for a project. This is a list of the
* plugin ids which have a goal of the form <plugin-id>:report.
@@ -310,26 +306,6 @@
}
/**
- * Set the attribute.
- *
- * @param artifactList
- */
- public void setArtifacts( List artifactList )
- {
- this.artifactList = artifactList;
- }
-
- /**
- * Get the atrifact attribute.
- *
- * @return The list of artifacts for the project
- */
- public List getArtifacts()
- {
- return artifactList;
- }
-
- /**
* Set the path to the file that this project extends.
*
* @param pomToExtend Project which this project extends.
@@ -885,31 +861,6 @@
public List getVersions()
{
return versions;
- }
-
- /**
- * Return a distribution for this project.
- *
- * @param versionId the id of the version to return
- * @return List of distributions.
- */
- public Version getVersionById( String versionId )
- {
- // We have to lazily initialize this because of betwixt/digester
- // behavior where an objects addXXX() method is called but
- // the parameter object is not yet fully populated.
- if ( versionMap == null )
- {
- versionMap = new HashMap();
-
- for ( Iterator i = versions.iterator(); i.hasNext(); )
- {
- Version version = (Version) i.next();
- versionMap.put( version.getId(), version );
- }
- }
-
- return (Version) versionMap.get( versionId );
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]