mirror of https://github.com/apache/maven.git
Refactor the maven-site.vm: added a macro to handle the copyright
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@226349 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2b8143ef42
commit
674bfaa0f4
|
@ -106,6 +106,26 @@
|
||||||
#end
|
#end
|
||||||
#end
|
#end
|
||||||
|
|
||||||
|
#macro ( copyright )
|
||||||
|
#if ( $project )
|
||||||
|
#set ( $currentYear = ${currentDate.year} + 1900 )
|
||||||
|
|
||||||
|
#if ( ${project.inceptionYear} && ( ${project.inceptionYear} != ${currentYear.toString()} ) )
|
||||||
|
${project.inceptionYear}-${currentYear}
|
||||||
|
#else
|
||||||
|
${currentYear}
|
||||||
|
#end
|
||||||
|
|
||||||
|
#if ( ${project.organization} && ${project.organization.name} )
|
||||||
|
${project.organization.name}
|
||||||
|
#else
|
||||||
|
Apache Software Foundation
|
||||||
|
#end
|
||||||
|
#else
|
||||||
|
2002-2005, Apache Software Foundation
|
||||||
|
#end
|
||||||
|
#end
|
||||||
|
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
@ -151,25 +171,7 @@
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
<div class="xright">©
|
<div class="xright">©#copyright()</div>
|
||||||
#if ( $project )
|
|
||||||
#set ( $currentYear = ${currentDate.year} + 1900 )
|
|
||||||
|
|
||||||
#if ( ${project.inceptionYear} && ( ${project.inceptionYear} != ${currentYear.toString()} ) )
|
|
||||||
${project.inceptionYear}-${currentYear}
|
|
||||||
#else
|
|
||||||
${currentYear}
|
|
||||||
#end
|
|
||||||
|
|
||||||
#if ( ${project.organization} && ${project.organization.name} )
|
|
||||||
${project.organization.name}
|
|
||||||
#else
|
|
||||||
Apache Software Foundation
|
|
||||||
#end
|
|
||||||
#else
|
|
||||||
2002-2005, Apache Software Foundation
|
|
||||||
#end
|
|
||||||
</div>
|
|
||||||
<div class="clear">
|
<div class="clear">
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue