Patch attached. The patch adds static method
calculateMetrics to MetricsBuilder, which synchronously
(re)calculates metrics for a resource and returns
This method is useful in case when the metrics need to
be computed programatically. Works also without using
the project nature. Maybe this could be useful from an
alternative Ant task too.
In fact, when going further in this request, it suggests
clearly separating Metrics to two components (plugins),
one of which would serve as a reusable engine,
contained the computation framework, metric extension
points and the cache and the other would add the UI,
visuals and maybe also the builder/nature.
BTW - one thing I haven't mentioned about Metrics yet -
great product, great work! Really many thanks for it.
Log in to post a comment.