Author: evenisse
Date: Tue Oct 31 23:35:51 2006
New Revision: 469804
URL: http://svn.apache.org/viewvc?view=rev&rev=469804
Log:
autoupdate the copyright year range
Modified:
maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp
Modified:
maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp
URL:
http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp?view=diff&rev=469804&r1=469803&r2=469804
==============================================================================
---
maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp
(original)
+++
maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp
Tue Oct 31 23:35:51 2006
@@ -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 ::
@@ -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">