org.apache.maven.plugin.source
Class JavaSourceArtifactTypeHandler
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaSourceArtifactTypeHandler
public JavaSourceArtifactTypeHandler()
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 artifacttype
- 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 artifacttype
- The type of the artifactversion
- 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.