org.apache.maven.repository
Class DefaultArtifactTypeHandler

java.lang.Object
  extended byorg.apache.maven.repository.DefaultArtifactTypeHandler
All Implemented Interfaces:
ArtifactTypeHandler

public class DefaultArtifactTypeHandler
extends java.lang.Object
implements ArtifactTypeHandler

This will do until wagon debuts.

Version:
$Id: DefaultArtifactTypeHandler.java 517014 2007-03-11 21:15:50Z ltheussl $
Author:
Brett Porter

Constructor Summary
DefaultArtifactTypeHandler()
           
 
Method Summary
 java.lang.String constructRepositoryDirectoryPath(java.lang.String type, Project project)
          Map an artifact to a repository directory path.
 java.lang.String constructRepositoryFullPath(java.lang.String type, Project project, java.lang.String version)
          Map an artifact to a repository path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultArtifactTypeHandler

public DefaultArtifactTypeHandler()
Method Detail

constructRepositoryDirectoryPath

public java.lang.String constructRepositoryDirectoryPath(java.lang.String type,
                                                         Project project)
Map an artifact to a repository directory path.

Specified by:
constructRepositoryDirectoryPath in interface ArtifactTypeHandler
Parameters:
project - the project for the artifact
type - The type of the artifact
Returns:
the path

constructRepositoryFullPath

public java.lang.String constructRepositoryFullPath(java.lang.String type,
                                                    Project project,
                                                    java.lang.String version)
Map an artifact to a repository path.

Specified by:
constructRepositoryFullPath in interface ArtifactTypeHandler
Parameters:
project - the project for the artifact
type - The type of the artifact
version - The version of the artifact (may be a snapshot)
Returns:
the path


Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.