Record Class GoalReportSpec
java.lang.Object
java.lang.Record
network.ike.plugin.support.GoalReportSpec
- Record Components:
goal- the goal that produced this reportprojectRoot- directory the report file is written into (alongside the invokingpom.xml)content- the Markdown report body
The report a goal produces — which goal it is, where its report
file lands, and the Markdown body.
Returned by AbstractGoalMojo.runGoal(); the base class
writes it via GoalReport. Making the report a required
return value — rather than an optional writeReport(...)
call a goal author can forget — means a goal cannot compile without
producing one. That is the structural fix for the missing-report
bug class (IKE-Network/ike-issues#413, motivated by #407).
-
Constructor Summary
ConstructorsConstructorDescriptionGoalReportSpec(GoalRef goal, Path projectRoot, String content) Creates an instance of aGoalReportSpecrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the value of thecontentrecord component.final booleanIndicates whether some other object is "equal to" this one.goal()Returns the value of thegoalrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theprojectRootrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GoalReportSpec
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
goal
-
projectRoot
Returns the value of theprojectRootrecord component.- Returns:
- the value of the
projectRootrecord component
-
content
-