You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@depot.apache.org by ni...@apache.org on 2004/07/31 07:50:00 UTC

svn commit: rev 31024 - incubator/depot/trunk/version/src/java/org/apache/depot/version/generation

Author: nickchalko
Date: Sat Jul 31 00:50:00 2004
New Revision: 31024

Modified:
   incubator/depot/trunk/version/src/java/org/apache/depot/version/generation/VersionSourceGenerator.java
Log:
Added license

Modified: incubator/depot/trunk/version/src/java/org/apache/depot/version/generation/VersionSourceGenerator.java
==============================================================================
--- incubator/depot/trunk/version/src/java/org/apache/depot/version/generation/VersionSourceGenerator.java	(original)
+++ incubator/depot/trunk/version/src/java/org/apache/depot/version/generation/VersionSourceGenerator.java	Sat Jul 31 00:50:00 2004
@@ -22,7 +22,7 @@
 {
                      
   protected final String NL = System.getProperties().getProperty("line.separator");
-  protected final String TEXT_1 = "/*" + NL + " * DO NOT CHECK IN." + NL + " * This is a autogenerated file.  " + NL + " */" + NL + "package ";
+  protected final String TEXT_1 = NL + "/*" + NL + " * DO NOT CHECK IN." + NL + " * This is a autogenerated file.  " + NL + " */" + NL + "package ";
   protected final String TEXT_2 = "; " + NL + "" + NL + "import java.util.Date;" + NL + "" + NL + "/**" + NL + " * ";
   protected final String TEXT_3 = " version ";
   protected final String TEXT_4 = " ." + NL + " * Generated at ";
@@ -68,6 +68,21 @@
     public String generate(String packageName,  String className, VersionMarker marker)
   {
     StringBuffer stringBuffer = new StringBuffer();
+    --
+Copyright [year] The Apache Software Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+--
     stringBuffer.append(TEXT_1);
     stringBuffer.append(packageName);
     stringBuffer.append(TEXT_2);