org.apache.maven.plugin.source
Class JavaSourceArtifactTypeHandler

java.lang.Object
  extended by org.apache.maven.plugin.source.JavaSourceArtifactTypeHandler
All Implemented Interfaces:
org.apache.maven.repository.ArtifactTypeHandler

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

Java sources artifact type handler.

Version:
$Id: JavaSourceArtifactTypeHandler.java 371078 2006-01-21 15:55:44Z snicoll $
Author:
Stephane Nicoll

Constructor Summary
JavaSourceArtifactTypeHandler()
           
 
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

JavaSourceArtifactTypeHandler

public JavaSourceArtifactTypeHandler()
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 - if an error occured while building the path

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 - if an error occured while building the path


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