super.execute();
final String baseDir = project.getBasedir().getAbsolutePath();
final FilePathNormalizer filePathNormalizer =
new FilePathNormalizer(baseDir);
final BuildPropertiesFileHelper helper =
new BuildPropertiesFileHelper(getLog(), propertiesOutputFile,
filePathNormalizer);
final Properties projectProperties = helper.getProjectProperties(project);
if (!isBuildPropertiesAlreadySet(projectProperties))
{
LoggingUtils.configureLogger(getLog(), logLevel);
final Properties buildMetaDataProperties = new Properties();
if (isBuildPropertiesToBeRebuild())
{
createBuildProperties(helper, projectProperties,
buildMetaDataProperties);
}
else
{
getLog().info("Reusing previously built metadata file.");
helper.readBuildPropertiesFile(buildMetaDataProperties);
}
updateMavenEnvironment(buildMetaDataProperties, helper);
}
}