final List<Provider> providers, final boolean runAtEndOfBuild)
throws MojoExecutionException
{
if (providers != null && !providers.isEmpty())
{
final MetaDataProviderBuilder builder =
new MetaDataProviderBuilder(project, session, runtime, scmInfo);
for (final Provider providerConfig : providers)
{
if (providerConfig.isRunAtEndOfBuild() == runAtEndOfBuild)
{
final MetaDataProvider provider = builder.build(providerConfig);
provider.provideBuildMetaData(buildMetaDataProperties);
}
}
}
}