mirror of https://github.com/apache/archiva.git
autoupdate the copyright year range
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@469804 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cc7b9cb6a7
commit
d42b5e0786
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue