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 2004/03/07 23:39:45 UTC
cvs commit: maven-components/maven-project/src/java/org/apache/maven/artifact MavenArtifact.java
jvanzyl 2004/03/07 14:39:45
Modified: maven-project/src/java/org/apache/maven/artifact
MavenArtifact.java
Log:
o the extension must be determined by the artifact and ultimately the artifact handler.
Removing getExtension() from Dependency in the model.
Revision Changes Path
1.2 +2 -65 maven-components/maven-project/src/java/org/apache/maven/artifact/MavenArtifact.java
Index: MavenArtifact.java
===================================================================
RCS file: /home/cvs/maven-components/maven-project/src/java/org/apache/maven/artifact/MavenArtifact.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MavenArtifact.java 25 Jan 2004 00:28:20 -0000 1.1
+++ MavenArtifact.java 7 Mar 2004 22:39:44 -0000 1.2
@@ -60,92 +60,29 @@
import java.io.File;
-/**
- * The interface defining an artifact (which probably lives in the
- * artifact).
- *
- * @author <a href="mailto:jason@zenplex.com">Jason van Zyl</a>
- * @version $Id$
- */
public interface MavenArtifact
{
- /**
- * Set the dependency for this JAR artifact.
- *
- * @param dependency Dependency this artifact is based on.
- */
void setDependency( Dependency dependency );
- /**
- * Get the dependency.
- *
- * @return The dependency this artifact is based on.
- */
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.
- *
- * @return Path to the artifact.
- */
String getPath();
- /**
- * Generate the path for this artifact given its dependency attributes.
- *
- * @return The generated path of the artifact based on the dependency attributes.
- */
String generatePath();
- /**
- * Return an URL path that is platform agnostic.
- *
- * @return URL of the artifact.
- */
String getUrlPath();
- /**
- * Return the url to the checksum file for this artifact.
- *
- * @return URL of the checksum file for this artifact.
- */
String getChecksumUrl();
- /**
- * Return the name of the artifact.
- *
- * @return Name of the underlying dependency.
- */
String getName();
- /**
- * Boolean flag indicating whether this artifact is a snapshot.
- *
- * @return Flag indicating whether this artifact is a snapshot.
- */
boolean isSnapshot();
- /**
- * Boolean flag indicating whether this artifact exists.
- *
- * @return Flag indicating the existance of the artifact in the local artifact.
- */
boolean exists();
- /**
- * Get the location of the artifact in the local file system.
- *
- * @return The location of the artifact in the local file system.
- */
File getFile();
+
+ String getExtension();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org