org.apache.maven.plugin.install
Class AbstractInstallMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.install.AbstractInstallMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- InstallFileMojo, InstallMojo
public abstract class AbstractInstallMojo
- extends org.apache.maven.plugin.AbstractMojo
Common fields for installation mojos.
- Version:
- $Id: AbstractInstallMojo.java 539824 2007-05-20 04:05:38Z carlos $
- Author:
- Brett Porter
Field Summary |
protected boolean |
createChecksum
Flag Whether to create checksums(MD5, SHA1) or not. |
protected org.apache.maven.artifact.installer.ArtifactInstaller |
installer
|
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
|
protected org.codehaus.plexus.digest.Digester |
md5Digester
Digester for MD5. |
protected org.codehaus.plexus.digest.Digester |
sha1Digester
Digester for SHA-1. |
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Method Summary |
protected java.lang.String |
getChecksum(java.io.File file,
java.lang.String algo)
|
protected void |
installCheckSum(java.io.File file,
org.apache.maven.artifact.Artifact artifact,
boolean isPom)
|
protected void |
installCheckSum(java.io.File file,
boolean isPom)
|
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 |
installer
protected org.apache.maven.artifact.installer.ArtifactInstaller installer
localRepository
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
createChecksum
protected boolean createChecksum
- Flag Whether to create checksums(MD5, SHA1) or not.
md5Digester
protected org.codehaus.plexus.digest.Digester md5Digester
- Digester for MD5.
sha1Digester
protected org.codehaus.plexus.digest.Digester sha1Digester
- Digester for SHA-1.
AbstractInstallMojo
public AbstractInstallMojo()
installCheckSum
protected void installCheckSum(java.io.File file,
boolean isPom)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
installCheckSum
protected void installCheckSum(java.io.File file,
org.apache.maven.artifact.Artifact artifact,
boolean isPom)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
getChecksum
protected java.lang.String getChecksum(java.io.File file,
java.lang.String algo)
throws java.security.NoSuchAlgorithmException,
org.codehaus.plexus.digest.DigesterException
- Throws:
java.security.NoSuchAlgorithmException
org.codehaus.plexus.digest.DigesterException
Copyright © 2004-2009 Apache Software Foundation. All Rights Reserved.