com.gridsystems.maven.furabuild
Class AbstractFuraBuildMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by com.gridsystems.maven.furabuild.AbstractFuraBuildMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
PluginGenMojo, TagVersionMojo

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

Base class for all fura-build mojos.

This class holds all configuration fields, in order to ensure that a single configuration can be specified for all possible goals.

Author:
Rodrigo Ruiz

Field Summary
protected  java.lang.String defaultTag
          TagVersionMojo configuration: Version used if no tag.txt file is found.
protected  org.apache.maven.artifact.factory.ArtifactFactory factory
          Used to look up Artifacts in the remote repository.
protected  org.apache.maven.artifact.repository.ArtifactRepository local
          Location of the local repository.
protected  java.io.File location
          TagVersionMojo configuration: Tag file location.
protected  java.util.List<java.lang.String> locations
          TagVersionMojo configuration: List of "locations" to parse.
protected  java.io.File outputDirectory
          PluginGenMojo configuration: Generated resource output directory.
protected  org.apache.maven.project.MavenProject project
          Reference to the Maven project.
protected  org.apache.maven.project.MavenProjectHelper projectHelper
           
protected  org.apache.maven.artifact.resolver.ArtifactResolver resolver
          Used to look up Artifacts in the remote repository.
protected  org.apache.maven.artifact.metadata.ArtifactMetadataSource source
          The artifact metadata source used to resolve dependencies.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractFuraBuildMojo()
           
 
Method Summary
protected  void processLocation(java.util.Properties props, java.io.File loc, java.lang.String prefix, java.lang.String defTag)
          Processes a tag.txt location and puts the obtained information into props.
 
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
 

Field Detail

location

protected java.io.File location
TagVersionMojo configuration: Tag file location.


defaultTag

protected java.lang.String defaultTag
TagVersionMojo configuration: Version used if no tag.txt file is found.


locations

protected java.util.List<java.lang.String> locations
TagVersionMojo configuration: List of "locations" to parse. Each entry is in the form: location;prefix;tag


outputDirectory

protected java.io.File outputDirectory
PluginGenMojo configuration: Generated resource output directory.


project

protected org.apache.maven.project.MavenProject project
Reference to the Maven project.


projectHelper

protected org.apache.maven.project.MavenProjectHelper projectHelper

local

protected org.apache.maven.artifact.repository.ArtifactRepository local
Location of the local repository.


resolver

protected org.apache.maven.artifact.resolver.ArtifactResolver resolver
Used to look up Artifacts in the remote repository.


factory

protected org.apache.maven.artifact.factory.ArtifactFactory factory
Used to look up Artifacts in the remote repository.


source

protected org.apache.maven.artifact.metadata.ArtifactMetadataSource source
The artifact metadata source used to resolve dependencies.

Constructor Detail

AbstractFuraBuildMojo

public AbstractFuraBuildMojo()
Method Detail

processLocation

protected final void processLocation(java.util.Properties props,
                                     java.io.File loc,
                                     java.lang.String prefix,
                                     java.lang.String defTag)
                              throws org.apache.maven.plugin.MojoExecutionException

Processes a tag.txt location and puts the obtained information into props.

Parameters:
props - Destination of all obtained information
loc - Folder containing the tag.txt file to process
prefix - Prefix used for generated properties
defTag - Default tag used if no tag.txt file is found
Throws:
org.apache.maven.plugin.MojoExecutionException - If an error occurs


Copyright © 2008 Grid Systems, S.A.. All Rights Reserved.