projectXmlFile = new File( workingDirectory, "project.xml" );
}
if ( !projectXmlFile.exists() )
{
throw new ContinuumAgentBuildExecutorException( "Could not find Maven project descriptor." );
}
try
{
ContinuumProjectBuildingResult result = new ContinuumProjectBuildingResult();
buildAgentMavenOneMetadataHelper.mapMetadata( result, projectXmlFile, project );
if ( result.hasErrors() )
{
throw new ContinuumAgentBuildExecutorException(
"Error while mapping metadata:" + result.getErrorsAsString() );
}
updateProject( project );
}
catch ( BuildAgentMavenOneMetadataHelperException e )
{
throw new ContinuumAgentBuildExecutorException( "Error while mapping metadata.", e );
}
}