{
try
{
final ScmFileSet fileSet =
new ScmFileSet(scmAccessInfo.getRootDirectory(), "**/*", null);
final LocallyModifiedInfo info =
revisionFetcher.containsModifications(fileSet);
buildMetaDataProperties.setProperty(
Constant.PROP_NAME_SCM_LOCALLY_MODIFIED,
String.valueOf(info.isLocallyModified()));
if (info.isLocallyModified())
{
buildMetaDataProperties.setProperty(
Constant.PROP_NAME_SCM_LOCALLY_MODIFIED_FILES, info.getFiles());
if (scmAccessInfo.isFailIndicated())
{
throw new ScmException("Local Modifications detected ("
+ info.getFiles() + ").");
}
}
}
catch (final Exception e)
{