From d42b5e078601a3dbfae93a3b2241353a4b584080 Mon Sep 17 00:00:00 2001 From: Emmanuel Venisse Date: Wed, 1 Nov 2006 07:35:51 +0000 Subject: [PATCH] autoupdate the copyright year range git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@469804 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/webapp/WEB-INF/jsp/decorators/default.jsp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp b/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp index e74ed8292..28846de98 100644 --- a/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp +++ b/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp @@ -19,6 +19,7 @@ <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib prefix="my" tagdir="/WEB-INF/tags" %> <%@ taglib prefix="pss" uri="/plexusSecuritySystem" %> +<%@ page import="java.util.Calendar" %> Maven Archiva :: @@ -146,9 +147,18 @@ <hr/> </div> +<% + int inceptionYear = 2005; + int currentYear = Calendar.getInstance().get( Calendar.YEAR ); + String copyrightRange = String.valueOf( inceptionYear ); + if ( inceptionYear != currentYear ) + { + copyrightRange = copyrightRange + "-" + String.valueOf( currentYear ); + } +%> <div id="footer"> <div class="xright">© - 2005-2006 Apache Software Foundation + Copyright © <%= copyrightRange %> Apache Software Foundation </div> <div class="clear"> -- 2.39.5