com.philemonworks.selfdiagnose.report
Class ReportMavenPOMProperties

java.lang.Object
  extended by com.philemonworks.selfdiagnose.DiagnosticTask
      extended by com.philemonworks.selfdiagnose.PatternMatchingTask
          extended by com.philemonworks.selfdiagnose.check.CheckProperty
              extended by com.philemonworks.selfdiagnose.check.CheckResourceProperty
                  extended by com.philemonworks.selfdiagnose.report.ReportMavenPOMProperties
All Implemented Interfaces:
Serializable

public class ReportMavenPOMProperties
extends CheckResourceProperty

ReportMavenPOMProperties is a task that reports the Maven build properties which are included in the application if it is build using Maven. Usage:

 <reportmavenpomproperties 
  comment="Maven POM properties"
  name="/META-INF/maven/com.yours.appp/myapp/pom.properties"
 /> 
 

Author:
ernestmicklei
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.philemonworks.selfdiagnose.check.CheckResourceProperty
name, PARAMETER_NAME, PARAMETER_URL, url
 
Fields inherited from class com.philemonworks.selfdiagnose.check.CheckProperty
PARAMETER_PROPERTY, property
 
Fields inherited from class com.philemonworks.selfdiagnose.PatternMatchingTask
PARAMETER_PATTERN, pattern
 
Fields inherited from class com.philemonworks.selfdiagnose.DiagnosticTask
comment, PARAMETER_COMMENT, PARAMETER_REPORT, PARAMETER_VARIABLE, reportResults, requestor, variableName
 
Constructor Summary
ReportMavenPOMProperties()
           
 
Method Summary
 String getDescription()
           
 void run(ExecutionContext ctx, DiagnosticTaskResult result)
          (non-Javadoc)
 void setUp(ExecutionContext ctx)
          Override this method to verify that task parameters are initialized/set correctly.
 
Methods inherited from class com.philemonworks.selfdiagnose.check.CheckResourceProperty
getName, getProperties, getUrl, initializeFromAttributes, setName, setUrl
 
Methods inherited from class com.philemonworks.selfdiagnose.check.CheckProperty
checkPropertyAccess, getProperty, isThisRequested, setProperty
 
Methods inherited from class com.philemonworks.selfdiagnose.PatternMatchingTask
checkValueAgainstPattern, getPattern, setPattern
 
Methods inherited from class com.philemonworks.selfdiagnose.DiagnosticTask
createResult, getComment, getDefaultReportTemplate, getRequestor, getTaskName, getVariableName, hasComment, isReportResults, run, run, setComment, setReportResults, setRequestor, setVariableName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportMavenPOMProperties

public ReportMavenPOMProperties()
Method Detail

getDescription

public String getDescription()
Overrides:
getDescription in class CheckResourceProperty
Returns:
String the description

setUp

public void setUp(ExecutionContext ctx)
           throws DiagnoseException
Description copied from class: DiagnosticTask
Override this method to verify that task parameters are initialized/set correctly.

Overrides:
setUp in class CheckResourceProperty
Parameters:
ctx - ExecutionContext
Throws:
DiagnoseException

run

public void run(ExecutionContext ctx,
                DiagnosticTaskResult result)
         throws DiagnoseException
Description copied from class: CheckResourceProperty
(non-Javadoc)

Overrides:
run in class CheckResourceProperty
Parameters:
ctx - ExecutionContext
result - DiagnosticTaskResult
Throws:
DiagnoseException
See Also:
DiagnosticTask.run(ExecutionContext)


Copyright © 2012. All Rights Reserved.