Class AbstractSystemPropertiesMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by AbstractSystemPropertiesMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
SystemPropertiesMojo

public class AbstractSystemPropertiesMojo
extends org.apache.maven.plugin.AbstractMojo

Created by IntelliJ IDEA. User: Tony Date: 18/10/2006 Time: 16:24:09 To change this template use File | Settings | File Templates.


Field Summary
protected  java.lang.String acceptanceTestSettings
          The greeting to display.
protected  org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
           
protected  org.apache.maven.artifact.repository.ArtifactRepository localRepository
           
protected  org.apache.maven.project.MavenProject project
           
protected  java.util.List resources
           
protected  java.util.List testResources
           
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractSystemPropertiesMojo()
           
 
Method Summary
 void execute()
           
protected  java.util.LinkedList findDependencies(org.apache.maven.project.MavenProject project, java.lang.String type)
           
protected  org.apache.maven.artifact.Artifact getArtifact(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String type)
           
protected  java.io.File getDependencyAsFile(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String type)
           
protected  java.lang.String getPropertyValue(java.lang.String k, java.util.Properties p)
          Retrieves a property value, replacing values like ${token} using the Properties to look them up.
protected  java.io.File getResourceAsFile(java.lang.String acceptanceTestSettings)
           
protected  java.io.FileInputStream getResourceAsFileStream(java.lang.String acceptanceTestSettings)
           
 
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
 

Field Detail

acceptanceTestSettings

protected java.lang.String acceptanceTestSettings
The greeting to display.


project

protected org.apache.maven.project.MavenProject project

resources

protected java.util.List resources

testResources

protected java.util.List testResources

localRepository

protected org.apache.maven.artifact.repository.ArtifactRepository localRepository

artifactFactory

protected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
Constructor Detail

AbstractSystemPropertiesMojo

public AbstractSystemPropertiesMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

getResourceAsFileStream

protected java.io.FileInputStream getResourceAsFileStream(java.lang.String acceptanceTestSettings)
                                                   throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

getResourceAsFile

protected java.io.File getResourceAsFile(java.lang.String acceptanceTestSettings)
                                  throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

findDependencies

protected java.util.LinkedList findDependencies(org.apache.maven.project.MavenProject project,
                                                java.lang.String type)

getDependencyAsFile

protected java.io.File getDependencyAsFile(java.lang.String groupId,
                                           java.lang.String artifactId,
                                           java.lang.String version,
                                           java.lang.String type)

getArtifact

protected org.apache.maven.artifact.Artifact getArtifact(java.lang.String groupId,
                                                         java.lang.String artifactId,
                                                         java.lang.String version,
                                                         java.lang.String type)

getPropertyValue

protected java.lang.String getPropertyValue(java.lang.String k,
                                            java.util.Properties p)
                                     throws java.io.FileNotFoundException
Retrieves a property value, replacing values like ${token} using the Properties to look them up. It will leave unresolved properties alone, trying for System properties, and implements reparsing (in the case that the value of a property contains a key), and will not loop endlessly on a pair like test = ${test}.

Throws:
java.io.FileNotFoundException


Copyright © 2003-2006 Atlassian. All Rights Reserved.