mirror of https://github.com/apache/maven.git
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:
parent
6e8f7a9264
commit
85d7de996d
|
@ -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 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue