incubator-depot-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nickcha...@apache.org
Subject svn commit: rev 31060 - in incubator/depot/trunk/version/src: java/org/apache/depot/version/generation templates
Date Sat, 31 Jul 2004 22:25:00 GMT
Author: nickchalko
Date: Sat Jul 31 15:24:59 2004
New Revision: 31060

Modified:
   incubator/depot/trunk/version/src/java/org/apache/depot/version/generation/VersionSourceGenerator.java
   incubator/depot/trunk/version/src/templates/VersionSourceGenerator.java.jet
Log:
Improved javadocs for generated 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
Sat Jul 31 15:24:59 2004
@@ -22,9 +22,9 @@
 {
                      
   protected final String NL = System.getProperties().getProperty("line.separator");
-  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_1 = NL + "/* " + NL + " *" + NL + " * NOTE: Automatically Generated
File (see Depot Version for 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.Date;" + NL + ""
+ NL + "/**" + NL + " * A autogenerated VersionStamp class for ";
   protected final String TEXT_4 = " ." + NL + " * Generated at ";
   protected final String TEXT_5 = " " + NL + " * on ";
   protected final String TEXT_6 = NL + " * by ";
@@ -70,11 +70,11 @@
   {
     StringBuffer stringBuffer = new StringBuffer();
     stringBuffer.append(TEXT_1);
-    stringBuffer.append(packageName);
+    stringBuffer.append(className);
     stringBuffer.append(TEXT_2);
-    stringBuffer.append(marker.getId());
+    stringBuffer.append(packageName);
     stringBuffer.append(TEXT_3);
-    stringBuffer.append(marker.getLongVersion());
+    stringBuffer.append(marker.getId());
     stringBuffer.append(TEXT_4);
     stringBuffer.append(new java.util.Date() );
     stringBuffer.append(TEXT_5);

Modified: incubator/depot/trunk/version/src/templates/VersionSourceGenerator.java.jet
==============================================================================
--- incubator/depot/trunk/version/src/templates/VersionSourceGenerator.java.jet	(original)
+++ incubator/depot/trunk/version/src/templates/VersionSourceGenerator.java.jet	Sat Jul 31
15:24:59 2004
@@ -5,16 +5,22 @@
     imports="org.apache.depot.version.VersionMarker "
     %>
 
-/*
- * DO NOT CHECK IN.
- * This is a autogenerated file.  
+/* 
+ *
+ * NOTE: Automatically Generated File (see Depot Version for the Apache Incubator)
+ * NOTE: http://incubator.apache.org/depot/version
+ * NOTE: Ant Task: version-stamp
+ * NOTE: AntLib:   apache-version
+ *
+ * $Header: <%=className%>.java $
+ *
  */
 package <%=packageName%>; 
 
 import java.util.Date;
 
 /**
- * <%=marker.getId()%> version <%=marker.getLongVersion()%> .
+ * A autogenerated VersionStamp class for <%=marker.getId()%> .
  * Generated at <%=new java.util.Date() %> 
  * on <%=getHost()%>
  * by <%=getUser()%>

Mime
View raw message