net.sourceforge.mavenplugins.javaapp
Class JavaAppArtifactTypeHandler

java.lang.Object
  extended by org.apache.maven.repository.DefaultArtifactTypeHandler
      extended by net.sourceforge.mavenplugins.javaapp.JavaAppArtifactTypeHandler
All Implemented Interfaces:
org.apache.maven.repository.ArtifactTypeHandler

public class JavaAppArtifactTypeHandler
extends org.apache.maven.repository.DefaultArtifactTypeHandler

Handler for the type extension.

Since:
1.3
Author:
Jörg Schaible

Constructor Summary
JavaAppArtifactTypeHandler()
          Constructs a type handler, that does not keep the extension in the repository.
JavaAppArtifactTypeHandler(boolean keepExtension)
          Constructs a type handler.
 
Method Summary
 java.lang.String constructRepositoryFullPath(java.lang.String type, org.apache.maven.project.Project project, java.lang.String version)
          Map an artifact to a repository path.
 
Methods inherited from class org.apache.maven.repository.DefaultArtifactTypeHandler
constructRepositoryDirectoryPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaAppArtifactTypeHandler

public JavaAppArtifactTypeHandler()
Constructs a type handler, that does not keep the extension in the repository.


JavaAppArtifactTypeHandler

public JavaAppArtifactTypeHandler(boolean keepExtension)
Constructs a type handler.

Parameters:
keepExtension - Flag to keep the type as extension in the repository.
Method Detail

constructRepositoryFullPath

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

Specified by:
constructRepositoryFullPath in interface org.apache.maven.repository.ArtifactTypeHandler
Overrides:
constructRepositoryFullPath in class org.apache.maven.repository.DefaultArtifactTypeHandler
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 © 2002-2009 SourceForge. All Rights Reserved.