org.codehaus.mojo.shitty
Class InstallMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.groovy.maven.mojo.GroovyMojo
          extended by org.codehaus.mojo.shitty.ShittyMojoSupport
              extended by org.codehaus.mojo.shitty.InstallMojo
All Implemented Interfaces:
groovy.lang.GroovyObject, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class InstallMojo
extends ShittyMojoSupport

Installs project artifacts in local repository for super helpful integration testing. This is NOT intended to replace the normal maven-install-plugin, it is only here to allow the SHITTY test invocations to be configured with a known set of versioned artifacts to reduce any chances of testing the wrong bits.

Since:
1.0-alpha-1
Version:
$Id: InstallMojo.groovy 6588 2008-03-28 12:22:57Z bentmann $
Author:
Jason Dillon

Field Summary
 
Fields inherited from class org.codehaus.groovy.maven.mojo.GroovyMojo
__timeStamp, __timeStamp__239_neverHappen1222927117793, sanitizeErrors
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
InstallMojo()
           
 
Method Summary
 void execute()
           
 org.apache.maven.artifact.factory.ArtifactFactory getArtifactFactory()
           
protected  java.lang.String getChecksum(java.io.File file, java.lang.String algo)
           
 boolean getCreateChecksum()
           
 org.apache.maven.artifact.installer.ArtifactInstaller getInstaller()
           
 org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository()
           
 org.codehaus.plexus.digest.Digester getMd5Digester()
           
 groovy.lang.MetaClass getMetaClass()
           
 java.lang.Object getProperty(java.lang.String name)
           
 org.codehaus.plexus.digest.Digester getSha1Digester()
           
 java.lang.String getVersion()
           
protected  void installCheckSum(java.io.File file, org.apache.maven.artifact.Artifact artifact, boolean isPom)
           
 java.lang.Object invokeMethod(java.lang.String name, java.lang.Object args)
           
 boolean isCreateChecksum()
           
 void setArtifactFactory(org.apache.maven.artifact.factory.ArtifactFactory value)
           
 void setCreateChecksum(boolean value)
           
 void setInstaller(org.apache.maven.artifact.installer.ArtifactInstaller value)
           
 void setLocalRepository(org.apache.maven.artifact.repository.ArtifactRepository value)
           
 void setMd5Digester(org.codehaus.plexus.digest.Digester value)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setProperty(java.lang.String name, java.lang.Object value)
           
 void setSha1Digester(org.codehaus.plexus.digest.Digester value)
           
 void setVersion(java.lang.String value)
           
 
Methods inherited from class org.codehaus.mojo.shitty.ShittyMojoSupport
getProject, resolveFileSet, setProject
 
Methods inherited from class org.codehaus.groovy.maven.mojo.GroovyMojo
afterExecute, beforeExecute, fail, fail, getAnt
 
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
 

Constructor Detail

InstallMojo

public InstallMojo()
Method Detail

getCreateChecksum

public boolean getCreateChecksum()

isCreateChecksum

public boolean isCreateChecksum()

setCreateChecksum

public void setCreateChecksum(boolean value)

getVersion

public java.lang.String getVersion()

setVersion

public void setVersion(java.lang.String value)

getArtifactFactory

public org.apache.maven.artifact.factory.ArtifactFactory getArtifactFactory()

setArtifactFactory

public void setArtifactFactory(org.apache.maven.artifact.factory.ArtifactFactory value)

getInstaller

public org.apache.maven.artifact.installer.ArtifactInstaller getInstaller()

setInstaller

public void setInstaller(org.apache.maven.artifact.installer.ArtifactInstaller value)

getLocalRepository

public org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository()

setLocalRepository

public void setLocalRepository(org.apache.maven.artifact.repository.ArtifactRepository value)

getMd5Digester

public org.codehaus.plexus.digest.Digester getMd5Digester()

setMd5Digester

public void setMd5Digester(org.codehaus.plexus.digest.Digester value)

getSha1Digester

public org.codehaus.plexus.digest.Digester getSha1Digester()

setSha1Digester

public void setSha1Digester(org.codehaus.plexus.digest.Digester value)

execute

public void execute()

installCheckSum

protected void installCheckSum(java.io.File file,
                               org.apache.maven.artifact.Artifact artifact,
                               boolean isPom)

getChecksum

protected java.lang.String getChecksum(java.io.File file,
                                       java.lang.String algo)

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject
Overrides:
getMetaClass in class ShittyMojoSupport

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject
Overrides:
setMetaClass in class ShittyMojoSupport

invokeMethod

public java.lang.Object invokeMethod(java.lang.String name,
                                     java.lang.Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject
Overrides:
invokeMethod in class ShittyMojoSupport

getProperty

public java.lang.Object getProperty(java.lang.String name)
Specified by:
getProperty in interface groovy.lang.GroovyObject
Overrides:
getProperty in class ShittyMojoSupport

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject
Overrides:
setProperty in class ShittyMojoSupport


Copyright © 2007-2009. All Rights Reserved.