]> source.dussan.org Git - archiva.git/commitdiff
autoupdate the copyright year range
authorEmmanuel Venisse <evenisse@apache.org>
Wed, 1 Nov 2006 07:35:51 +0000 (07:35 +0000)
committerEmmanuel Venisse <evenisse@apache.org>
Wed, 1 Nov 2006 07:35:51 +0000 (07:35 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@469804 13f79535-47bb-0310-9956-ffa450edef68

archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp

index e74ed82920f5b3999c6b749ac313fd64c136915e..28846de983dbd4b5066f85756c92b655076d187b 100644 (file)
@@ -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" %>
 <html>
 <head>
   <title>Maven Archiva ::
   <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">&#169;
-    2005-2006 Apache Software Foundation
+    Copyright &copy; <%= copyrightRange %> Apache Software Foundation
   </div>
 
   <div class="clear">