This interface can be optionally implemented by environment properties to signal that they contribute meaningful information to the build trace.
As environment property values can be cached for subsequent builds in the same build environment, this interface can be used to report build trace information even if the environment property is not calculated again.
You should not report build trace information in the EnvironmentProperty.getCurrentValue(
public default void | contributeBuildTraceInformation( Instructs the environment property to contribute build trace information. |
From: EnvironmentProperty< |
The implementers of this method can use the BuildTrace interface to report information that should be recorded in the build trace.
The default implementation does nothing.
null
if it threw an exception.If the property computation completed successfully, this argument is
null
.