ch.fortysix.maven.report.criterion
Class PostmanCriterionReportMojortMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.reporting.AbstractMavenReport
          extended by ch.fortysix.maven.report.AbstractReportMojo
              extended by ch.fortysix.maven.report.criterion.PostmanCriterionReportMojortMojo
All Implemented Interfaces:
groovy.lang.GroovyObject, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.apache.maven.reporting.MavenReport

public class PostmanCriterionReportMojortMojo
extends AbstractReportMojo
implements groovy.lang.GroovyObject

Author:
Domi

Field Summary
 
Fields inherited from interface org.apache.maven.reporting.MavenReport
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLE
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
PostmanCriterionReportMojortMojo()
           
 
Method Summary
 List convertToFileList(String dir, String[] relativeFiles)
          Prepends the given list of file paths with the directory and creates returns the resulting files in a collection.
protected  void executePostmanReport(Locale locale)
          To be implemented by subclasses
 List getMatches(String regex, File fileToTest)
          Returns the lines matching the given regex in the file
 groovy.lang.MetaClass getMetaClass()
           
 String getNlsPrefix()
          prefix within the bundle files - has to be overwritten by implemtors!
 String getOutputName()
           
 Object getProperty(String name)
           
 File getReportFile()
           
 String getSubjectPostFix()
          returns the postfix for the mail subject
 Object getWriteReport2Xml()
           
 Object invokeMethod(String name, Object args)
           
 void prepareReportXml()
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setProperty(String name, Object value)
           
 void setReportFile(File value)
           
 void setSubjectPostFix(String value)
           
 void setWriteReport2Xml(Object value)
           
 
Methods inherited from class ch.fortysix.maven.report.AbstractReportMojo
executeReport, getActualDocuSite, getBundle, getDescription, getDocuSite, getFailonerror, getFrom, getMailAltConfig, getMailcontenttype, getMailhost, getMailpassword, getMailport, getMailSender, getMailssl, getMailuser, getMultipartSupported, getName, getOutputDirectory, getProject, getSendReport, getSession, getSiteRenderer, getSkipMails, getSourceEncoding, getSubject, isFailonerror, isMailAltConfig, isMailssl, isMultipartSupported, isSkipMails, setDocuSite, setFailonerror, setFrom, setMailAltConfig, setMailcontenttype, setMailhost, setMailpassword, setMailport, setMailSender, setMailssl, setMailuser, setMultipartSupported, setOutputDirectory, setProject, setSendReport, setSession, setSkipMails, setSourceEncoding, setSubject
 
Methods inherited from class org.apache.maven.reporting.AbstractMavenReport
canGenerateReport, closeReport, execute, generate, getCategoryName, getReportOutputDirectory, getSink, isExternalReport, setReportOutputDirectory
 
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

PostmanCriterionReportMojortMojo

public PostmanCriterionReportMojortMojo()
Method Detail

setSubjectPostFix

public void setSubjectPostFix(String value)

getReportFile

public File getReportFile()

setReportFile

public void setReportFile(File value)

getWriteReport2Xml

public Object getWriteReport2Xml()

setWriteReport2Xml

public void setWriteReport2Xml(Object value)

getSubjectPostFix

public String getSubjectPostFix()
Description copied from class: AbstractReportMojo
returns the postfix for the mail subject

Specified by:
getSubjectPostFix in class AbstractReportMojo

getNlsPrefix

public String getNlsPrefix()
Description copied from class: AbstractReportMojo
prefix within the bundle files - has to be overwritten by implemtors!

Specified by:
getNlsPrefix in class AbstractReportMojo

getOutputName

public String getOutputName()
Specified by:
getOutputName in interface org.apache.maven.reporting.MavenReport

executePostmanReport

protected void executePostmanReport(Locale locale)
                             throws org.apache.maven.reporting.MavenReportException
Description copied from class: AbstractReportMojo
To be implemented by subclasses

Specified by:
executePostmanReport in class AbstractReportMojo
Throws:
org.apache.maven.reporting.MavenReportException

prepareReportXml

public void prepareReportXml()

getMatches

public List getMatches(String regex,
                       File fileToTest)
Returns the lines matching the given regex in the file

Parameters:
regex - the regex to match
fileToTest - the file to test
Returns:
list of matching lines

convertToFileList

public List convertToFileList(String dir,
                              String[] relativeFiles)
Prepends the given list of file paths with the directory and creates returns the resulting files in a collection.

Parameters:
dir - the directory
relativeFiles - files relative to the given directory
Returns:
a list of files

getMetaClass

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

setMetaClass

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

invokeMethod

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

getProperty

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

setProperty

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


Copyright © 2009-2010. All Rights Reserved.