org.codehaus.mojo.appassembler
Class AbstractAppAssemblerMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.appassembler.AbstractAppAssemblerMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AssembleMojo, CreateRepositoryMojo, GenerateDaemonsMojo

public abstract class AbstractAppAssemblerMojo
extends org.apache.maven.plugin.AbstractMojo

This is intended to summarize all generic parts of the Mojos into a single class. First step of refactoring code.

Author:
Karl Heinz Marbaise

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractAppAssemblerMojo()
           
 
Method Summary
protected  void installArtifact(org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.repository.ArtifactRepository artifactRepository)
          Copy artifact to another repository
protected  void installArtifact(org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.repository.ArtifactRepository artifactRepository, boolean useTimestampInSnapshotFileName)
          Copy artifact to another repository with option not to use timestamp in the snapshot filename
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.maven.plugin.Mojo
execute
 

Constructor Detail

AbstractAppAssemblerMojo

public AbstractAppAssemblerMojo()
Method Detail

installArtifact

protected void installArtifact(org.apache.maven.artifact.Artifact artifact,
                               org.apache.maven.artifact.repository.ArtifactRepository artifactRepository,
                               boolean useTimestampInSnapshotFileName)
                        throws org.apache.maven.plugin.MojoExecutionException
Copy artifact to another repository with option not to use timestamp in the snapshot filename

Parameters:
artifact -
artifactRepository -
useTimestampInSnapshotFileName -
Throws:
org.apache.maven.plugin.MojoExecutionException

installArtifact

protected void installArtifact(org.apache.maven.artifact.Artifact artifact,
                               org.apache.maven.artifact.repository.ArtifactRepository artifactRepository)
                        throws org.apache.maven.plugin.MojoExecutionException
Copy artifact to another repository

Parameters:
artifact -
artifactRepository -
Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2006-2012 Codehaus. All Rights Reserved.