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/08/11 17:53:31 UTC

svn commit: rev 36236 - in incubator/depot/trunk/version/src: java/org/apache/depot/version/generation templates

Author: nickchalko
Date: Wed Aug 11 10:53:30 2004
New Revision: 36236

Removed:
   incubator/depot/trunk/version/src/templates/VersionSourceGenerator.java.jet
Modified:
   incubator/depot/trunk/version/src/java/org/apache/depot/version/generation/VersionSourceGenerator.java
   incubator/depot/trunk/version/src/templates/VersionSourceGenerator.javajet
   incubator/depot/trunk/version/src/templates/version.skeleton
Log:
Added ASL 2.0 to the .javaset file.

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	Wed Aug 11 10:53:30 2004
@@ -18,13 +18,13 @@
  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  * License for the specific language governing permissions and limitations under
  * the License.
- */
+ */ 
 
 public final class VersionSourceGenerator extends org.apache.depot.version.generation.Skeleton
 {
                      
   protected final String NL = System.getProperties().getProperty("line.separator");
-  protected final String TEXT_1 = NL + "/* " + NL + " *" + NL + " * NOTE: Automatically Generated File (see Depot Version from the Apache Incubator)" + NL + " * NOTE: http://incubator.apache.org/depot/version" + NL + " * NOTE: Ant Task: version-stamp" + NL + " * NOTE: AntLib:   apache-version" + NL + " *" + NL + " * $Header: ";
+  protected final String TEXT_1 = "/* " + NL + " *" + NL + " * NOTE: Automatically Generated File (see Depot Version from the Apache Incubator)" + NL + " * NOTE: http://incubator.apache.org/depot/version" + NL + " * NOTE: Ant Task: version-stamp" + NL + " * NOTE: AntLib:   apache-version" + NL + " *" + NL + " * $Header: ";
   protected final String TEXT_2 = ".java $" + NL + " *" + NL + " */" + NL + "package ";
   protected final String TEXT_3 = "; " + NL + "" + NL + "import java.util.Collections;" + NL + "import java.util.Date;" + NL + "import java.util.HashMap;" + NL + "import java.util.Map;" + NL + "/**" + NL + " * A autogenerated VersionStamp class for ";
   protected final String TEXT_4 = " ." + NL + " * Generated at ";
@@ -32,11 +32,11 @@
   protected final String TEXT_6 = NL + " * by ";
   protected final String TEXT_7 = NL + " * @author <a href=\"http://incubator.apache.org/depot\">Depot Version</a> " + NL + " *         from the <a href=\"http://incubator.apache.org/\">Apache Incubator</a>, " + NL + "           version ";
   protected final String TEXT_8 = NL + " * @version ";
-  protected final String TEXT_9 = NL + " */" + NL + "public final class ";
+  protected final String TEXT_9 = NL + " * @generated" + NL + " */" + NL + "public final class ";
   protected final String TEXT_10 = " { " + NL + "\t/* SINGLETON PATTERN */" + NL + "\tprivate final static  ";
   protected final String TEXT_11 = " INSTANCE = new  ";
-  protected final String TEXT_12 = "();" + NL + "    public static ";
-  protected final String TEXT_13 = " getInstance() {return INSTANCE ;}" + NL + "    " + NL + "    " + NL + "    private final Map  attributes;" + NL + "" + NL + "" + NL + "\t" + NL + "\tprivate  ";
+  protected final String TEXT_12 = "();" + NL + "   public static ";
+  protected final String TEXT_13 = " getInstance() {return INSTANCE ;}" + NL + "    " + NL + "   private final Map  attributes;" + NL + "\t" + NL + "\tprivate  ";
   protected final String TEXT_14 = "()  {" + NL + "\tMap temp = new HashMap();" + NL + "\t";
   protected final String TEXT_15 = NL + "    temp.put(";
   protected final String TEXT_16 = ",";
@@ -84,6 +84,26 @@
     public String generate(String packageName,  String className, VersionMarker marker)
   {
     StringBuffer stringBuffer = new StringBuffer();
+     
+/*
+ * Copyright 2004 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.
+ */
+ /* NOTE this will also show up in VersionSourceGenerator.java but not in the 
+  * Generated VersionStamp.
+  */
+ 
     stringBuffer.append(TEXT_1);
     stringBuffer.append(className);
     stringBuffer.append(TEXT_2);

Modified: incubator/depot/trunk/version/src/templates/VersionSourceGenerator.javajet
==============================================================================
--- incubator/depot/trunk/version/src/templates/VersionSourceGenerator.javajet	(original)
+++ incubator/depot/trunk/version/src/templates/VersionSourceGenerator.javajet	Wed Aug 11 10:53:30 2004
@@ -4,7 +4,26 @@
     skeleton="version.skeleton"
     imports="org.apache.depot.version.VersionMarker java.util.Iterator java.util.Map"
     %>
-
+<% 
+/*
+ * Copyright 2004 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.
+ */
+ /* NOTE this will also show up in VersionSourceGenerator.java but not in the 
+  * Generated VersionStamp.
+  */
+ %>
 /* 
  *
  * NOTE: Automatically Generated File (see Depot Version from the Apache Incubator)

Modified: incubator/depot/trunk/version/src/templates/version.skeleton
==============================================================================
--- incubator/depot/trunk/version/src/templates/version.skeleton	(original)
+++ incubator/depot/trunk/version/src/templates/version.skeleton	Wed Aug 11 10:53:30 2004
@@ -12,7 +12,7 @@
  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  * License for the specific language governing permissions and limitations under
  * the License.
- */
+ */ 
 
 public final class CLASS extends org.apache.depot.version.generation.Skeleton
 {