org.codehaus.gmaven.examples.install
Class InstallMojoSupport

java.lang.Object
  extended by groovy.lang.GroovyObjectSupport
      extended by org.codehaus.gmaven.mojo.GroovyMojo
          extended by org.codehaus.gmaven.examples.install.InstallMojoSupport
All Implemented Interfaces:
groovy.lang.GroovyObject, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
InstallMojo

public abstract class InstallMojoSupport
extends GroovyMojo
implements groovy.lang.GroovyObject

Support for installation mojos.

Version:
$Id: InstallMojoSupport.groovy 10 2009-07-16 09:23:15Z user57 $

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
InstallMojoSupport()
           
 
Method Summary
protected  String getChecksum(File file, 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()
           
 Object getProperty(String name)
           
 org.codehaus.plexus.digest.Digester getSha1Digester()
           
protected  void installCheckSum(File file, org.apache.maven.artifact.Artifact artifact, boolean isPom)
           
protected  void installCheckSum(File file, boolean isPom)
           
 Object invokeMethod(String name, Object args)
           
 boolean isCreateChecksum()
           
 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(String name, Object value)
           
 void setSha1Digester(org.codehaus.plexus.digest.Digester value)
           
 
Methods inherited from class org.codehaus.gmaven.mojo.GroovyMojo
fail, fail, 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

InstallMojoSupport

public InstallMojoSupport()
Method Detail

getCreateChecksum

public boolean getCreateChecksum()

isCreateChecksum

public boolean isCreateChecksum()

setCreateChecksum

public void setCreateChecksum(boolean 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)

installCheckSum

protected void installCheckSum(File file,
                               boolean isPom)

installCheckSum

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

getChecksum

protected String getChecksum(File file,
                             String algo)

getMetaClass

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

setMetaClass

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

invokeMethod

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

getProperty

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

setProperty

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


Copyright © 2006-2012 Codehaus. All Rights Reserved.