org.apache.maven.dist
Class DistributionArtifactTypeHandler

java.lang.Object
  extended byorg.apache.maven.dist.DistributionArtifactTypeHandler
All Implemented Interfaces:
org.apache.maven.repository.ArtifactTypeHandler

public class DistributionArtifactTypeHandler
extends Object
implements org.apache.maven.repository.ArtifactTypeHandler

This will do until wagon debuts.

Version:
$Id: DistributionArtifactTypeHandler.java 532339 2007-04-25 12:28:56Z ltheussl $
Author:
Brett Porter

Constructor Summary
DistributionArtifactTypeHandler()
           
 
Method Summary
 String constructRepositoryDirectoryPath(String type, org.apache.maven.project.Project project)
          Map an artifact to a repository directory path.
 String constructRepositoryFullPath(String type, org.apache.maven.project.Project project, 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

DistributionArtifactTypeHandler

public DistributionArtifactTypeHandler()
Method Detail

constructRepositoryDirectoryPath

public String constructRepositoryDirectoryPath(String type,
                                               org.apache.maven.project.Project project)
                                        throws org.apache.maven.MavenException
Map an artifact to a repository directory path.

Specified by:
constructRepositoryDirectoryPath in interface org.apache.maven.repository.ArtifactTypeHandler
Parameters:
project - the project for the artifact
type - The type of the artifact
Returns:
the path
Throws:
org.apache.maven.MavenException - MavenException

constructRepositoryFullPath

public String constructRepositoryFullPath(String type,
                                          org.apache.maven.project.Project project,
                                          String version)
                                   throws org.apache.maven.MavenException
Map an artifact to a repository path.

Specified by:
constructRepositoryFullPath in interface org.apache.maven.repository.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
Throws:
org.apache.maven.MavenException - MavenException


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