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 2002/12/09 07:00:00 UTC
cvs commit: jakarta-turbine-maven/src/java/org/apache/maven/repository Artifact.java
jvanzyl 2002/12/08 22:00:00
Modified: src/java/org/apache/maven/repository Artifact.java
Log:
refactoring
Revision Changes Path
1.9 +33 -9 jakarta-turbine-maven/src/java/org/apache/maven/repository/Artifact.java
Index: Artifact.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/repository/Artifact.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- Artifact.java 3 Dec 2002 06:33:47 -0000 1.8
+++ Artifact.java 9 Dec 2002 06:00:00 -0000 1.9
@@ -58,6 +58,8 @@
* ====================================================================
*/
+import org.apache.maven.project.Dependency;
+
/**
* The interface defining an artifact (which probably lives in the
* repository).
@@ -67,6 +69,29 @@
*/
public interface Artifact
{
+ /**
+ * Set the dependency for this JAR artifact.
+ *
+ * @param dependency Dependency this artifact is based on.
+ */
+ public void setDependency( Dependency dependency );
+
+ /**
+ * Get the dependency.
+ *
+ * @return The dependency this artifact is based on.
+ */
+ public Dependency getDependency();
+
+ /**
+ * Set the path to the artifact. The maven jar override facilty can be
+ * used to change the path to the artifact if the user specifies the
+ * use of a specific version.
+ *
+ * @param path Path to the artifact.
+ */
+ void setPath( String path );
+
/**
* Return the path of the artifact using platform specific naming
* conventions.
@@ -75,6 +100,8 @@
*/
String getPath();
+ String generatePath();
+
/**
* Return an URL path that is platform agnostic.
*
@@ -90,19 +117,16 @@
String getName();
/**
- * Boolean flag indicating whether this artifact exists in
- * the local repository.
+ * Boolean flag indicating whether this artifact exists.
*
- * @param mavenRepoLocal Maven local repository.
* @return Flag indicating the existance of the artifact in the local repository.
*/
- boolean exists( File mavenRepoLocal );
+ boolean exists();
/**
- * Get the location of the artifact in the local repository.
+ * Get the location of the artifact in the local file system.
*
- * @param mavenRepoLocal The maven local repository.
- * @return The location of the artifact in the local repository.
+ * @return The location of the artifact in the local file system.
*/
- File getFile( File mavenRepoLocal );
+ File getFile();
}