On 03/23/2012 01:45 AM, Christopher Orr wrote:
> Hi all,
>
> I tried using the optional token macro support in some of the analysis
> plugins, but I couldn't get it to work.
>
> e.g. I parsed Findbugs results, and tried to set the token
> ${FINDBUGS_COUNT} with the Description Setter plugin, but only an
> empty string was returned.  Some other tokens listed by the
> Description Setter plugin did seem to work, such as BUILD_NUMBER.
>
> I saw this behaviour in 1.409 -- do I need a newer version, or am I
> missing something?
>
> I tried this also in my own plugin extending from analysis-core, since
> it makes it very simple to define token macros -- yet they never
> seemed to return a value either.
>
> Thanks,
> Chris

Maybe the order of the publishers is wrong, i.e., the analysis plug-ins
run after the description setter plug-in.
>From the source code of the Description Setter Plug-in I see the
declaration:

@Extension
public static final class DescriptorImpl extends

Maybe we should change that to

@Extension(ordinal = -1)


Then this plug-in will run after the analysis plugins.

Ulli

Reply via email to