HHH-6002 - Use today's year when building copyright footer for aggregated javadocs

This commit is contained in:
Steve Ebersole 2011-03-18 09:02:31 -05:00
parent 53941b9b72
commit 13f6417ea6
1 changed files with 3 additions and 1 deletions

View File

@ -14,6 +14,8 @@ javadocBuildDir = dir( buildDirName + "/documentation/javadocs" )
def List subProjectsToSkipForJavadoc = ['release'];
def copyRightYear = new java.util.GregorianCalendar().get( java.util.Calendar.YEAR );
task aggregateJavadocs(type: Javadoc) {
description = "Build the aggregated JavaDocs for all modules"
maxMemory = '512m'
@ -23,7 +25,7 @@ task aggregateJavadocs(type: Javadoc) {
stylesheetFile = new File( projectDir, 'src/javadoc/stylesheet.css' )
windowTitle = 'Hibernate JavaDocs'
docTitle = "Hibernate JavaDoc ($project.version)"
bottom = 'Copyright &copy; 2001-2010 <a href="http://redhat.com">Red Hat, Inc.</a> All Rights Reserved.'
bottom = "Copyright &copy; 2001-$copyRightYear <a href=\"http://redhat.com\">Red Hat, Inc.</a> All Rights Reserved."
use = true
links = [ 'http://download.oracle.com/javase/6/docs/api/', 'http://download.oracle.com/javaee/6/api/' ]
group(