o let people know when the project name and url aren't set

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@170090 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2005-05-13 21:13:04 +00:00
parent 6e8f7a9264
commit 85d7de996d
1 changed files with 18 additions and 2 deletions

View File

@ -277,8 +277,24 @@ public class DoxiaMojo
} }
// TODO: interpolate ${project.*} in general // TODO: interpolate ${project.*} in general
props.put( "project.name", project.getName() );
props.put( "project.url", project.getUrl() ); if ( project.getName() != null )
{
props.put( "project.name", project.getName() );
}
else
{
props.put( "project.name", "NO_PROJECT_NAME_SET" );
}
if ( project.getUrl() != null )
{
props.put( "project.url", project.getUrl() );
}
else
{
props.put( "project.url", "NO_PROJECT_URL_SET" );
}
siteDescriptorContent = StringUtils.interpolate( siteDescriptorContent, props ); siteDescriptorContent = StringUtils.interpolate( siteDescriptorContent, props );