Author: brett
Date: Mon Aug  1 08:22:47 2005
New Revision: 226819

URL: http://svn.apache.org/viewcvs?rev=226819&view=rev
Log:
missed inheritence

Modified:
    
maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/artifact/ActiveProjectArtifact.java

Modified: 
maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/artifact/ActiveProjectArtifact.java
URL: 
http://svn.apache.org/viewcvs/maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/artifact/ActiveProjectArtifact.java?rev=226819&r1=226818&r2=226819&view=diff
==============================================================================
--- 
maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/artifact/ActiveProjectArtifact.java
 (original)
+++ 
maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/artifact/ActiveProjectArtifact.java
 Mon Aug  1 08:22:47 2005
@@ -17,11 +17,11 @@
  */
 
 import org.apache.maven.artifact.Artifact;
-import org.apache.maven.artifact.versioning.VersionRange;
 import org.apache.maven.artifact.handler.ArtifactHandler;
-import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
-import org.apache.maven.artifact.repository.ArtifactRepository;
 import org.apache.maven.artifact.metadata.ArtifactMetadata;
+import org.apache.maven.artifact.repository.ArtifactRepository;
+import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
+import org.apache.maven.artifact.versioning.VersionRange;
 import org.apache.maven.project.MavenProject;
 
 import java.io.File;
@@ -31,11 +31,10 @@
  * Wraps an active project instance to be able to receive updates from its 
artifact without affecting the original
  * attributes of this artifact.
  *
- * @todo I think this exposes a design flaw in that the immutable and mutable 
parts of an artifact are in one class and
- * should be split. ie scope, file, etc depend on the context of use, whereas 
everything else is immutable.
- *
  * @author <a href="mailto:[EMAIL PROTECTED]">Brett Porter</a>
  * @version $Id$
+ * @todo I think this exposes a design flaw in that the immutable and mutable 
parts of an artifact are in one class and
+ * should be split. ie scope, file, etc depend on the context of use, whereas 
everything else is immutable.
  */
 public class ActiveProjectArtifact
     implements Artifact
@@ -48,7 +47,7 @@
     {
         this.artifact = artifact;
         this.project = project;
-        
+
         artifact.setFile( project.getArtifact().getFile() );
     }
 
@@ -101,7 +100,7 @@
     public void setFile( File destination )
     {
         artifact.setFile( destination );
-        
+
         // TODO: [jc; 29-jul-05] Is this appropriate? I mean, isn't the point 
to use the project-file instead??
         project.getArtifact().setFile( destination );
     }
@@ -234,5 +233,10 @@
     public boolean isResolved()
     {
         return artifact.isResolved();
+    }
+
+    public void setResolvedVersion( String version )
+    {
+        artifact.setResolvedVersion( version );
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to