You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by jv...@apache.org on 2003/05/23 20:53:20 UTC
cvs commit: maven-new/core/src/java/org/apache/maven/artifact/factory ArtifactFactory.java DefaultArtifactFactory.java
jvanzyl 2003/05/23 11:53:20
Modified: core/src/java/org/apache/maven/artifact/factory
ArtifactFactory.java DefaultArtifactFactory.java
Log:
o Adding the set/get mavenRepoLocal to the interface for the artifact factory.
Michal, just starting here but we can move this mavenRepoLocal finding code to
the most appropriate place to allow the artifact tool chain to be usable as an
external tool.
Revision Changes Path
1.3 +5 -2 maven-new/core/src/java/org/apache/maven/artifact/factory/ArtifactFactory.java
Index: ArtifactFactory.java
===================================================================
RCS file: /home/cvs/maven-new/core/src/java/org/apache/maven/artifact/factory/ArtifactFactory.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ArtifactFactory.java 23 May 2003 16:00:46 -0000 1.2
+++ ArtifactFactory.java 23 May 2003 18:53:19 -0000 1.3
@@ -67,7 +67,7 @@
* <p>
* For the moment there a general assumption that there
* is one to one relation between
- * {@link Dependency} and {@link org.apache.maven.artifact.Artifact}
+ * {@link org.apache.maven.project.Dependency} and {@link org.apache.maven.artifact.Artifact}
* and currently for each dependecy one artifact will
* created.
* <p>
@@ -97,5 +97,8 @@
* @return The list contating resolved artifacts.
*/
public List createArtifacts( Project project ) throws Exception;
+
+ void setMavenRepoLocal( String mavenLocalRepo );
+ String getMavenRepoLocal( Project project );
}
1.7 +2 -2 maven-new/core/src/java/org/apache/maven/artifact/factory/DefaultArtifactFactory.java
Index: DefaultArtifactFactory.java
===================================================================
RCS file: /home/cvs/maven-new/core/src/java/org/apache/maven/artifact/factory/DefaultArtifactFactory.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- DefaultArtifactFactory.java 23 May 2003 18:40:42 -0000 1.6
+++ DefaultArtifactFactory.java 23 May 2003 18:53:20 -0000 1.7
@@ -176,7 +176,7 @@
* @param project
* @return
*/
- private String getMavenRepoLocal( Project project )
+ public String getMavenRepoLocal( Project project )
{
// We want the whole artifact processing to work as a separate tool chain
// so we need to be able to get the location of maven local repository in
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org