svn commit: r1061886 - in /ofbiz/trunk: NOTICE framework/entity/src/org/ofbiz/entity/model/ModelInfo.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1061886 - in /ofbiz/trunk: NOTICE framework/entity/src/org/ofbiz/entity/model/ModelInfo.java

jleroux@apache.org
Author: jleroux
Date: Fri Jan 21 16:33:22 2011
New Revision: 1061886

URL: http://svn.apache.org/viewvc?rev=1061886&view=rev
Log:
Update copyright from 2010 to 2011, BTW this closes "update files from 2009 to 2010" (https://issues.apache.org/jira/browse/OFBIZ-3783) - OFBIZ-3783

I have changed ModelInfo.getCopyright() in order to automatize (I believe the copyright is always valid so we don't care about the date really used, if you disagree please let me know, I have a doubt about this...)

Modified:
    ofbiz/trunk/NOTICE
    ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelInfo.java

Modified: ofbiz/trunk/NOTICE
URL: http://svn.apache.org/viewvc/ofbiz/trunk/NOTICE?rev=1061886&r1=1061885&r2=1061886&view=diff
==============================================================================
--- ofbiz/trunk/NOTICE (original)
+++ ofbiz/trunk/NOTICE Fri Jan 21 16:33:22 2011
@@ -4,7 +4,7 @@
 =========================================================================
 
 The Apache Open For Business Project (Apache OFBiz)
-Copyright 2001-2010 The Apache Software Foundation
+Copyright 2001-2011 The Apache Software Foundation
 
 =========================================================================
 ==  Apache General Notice (Covers OFBiz and all ASF libraries)         ==

Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelInfo.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelInfo.java?rev=1061886&r1=1061885&r2=1061886&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelInfo.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelInfo.java Fri Jan 21 16:33:22 2011
@@ -18,7 +18,12 @@
  *******************************************************************************/
 package org.ofbiz.entity.model;
 
+import java.util.Calendar;
+import java.util.Locale;
+import java.util.TimeZone;
+
 import org.ofbiz.base.util.StringUtil;
+import org.ofbiz.base.util.UtilDateTime;
 import org.ofbiz.base.util.UtilXml;
 import org.w3c.dom.Element;
 
@@ -65,7 +70,7 @@ public class ModelInfo {
         @Override
         public String getAuthor()               { return "None"; }
         @Override
-        public String getCopyright()            { return "Copyright 2001-2009 The Apache Software Foundation"; }
+        public String getCopyright()            { int year = UtilDateTime.getYear(UtilDateTime.nowTimestamp(), TimeZone.getDefault(), Locale.getDefault()); return "Copyright 2001-" + year + " The Apache Software Foundation"; }
         @Override
         public String getVersion()              { return "1.0"; }
         @Override