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 31019 - incubator/depot/trunk/version/src/java/org/apache/depot/version/generation
Date Sat, 31 Jul 2004 07:37:43 GMT
Author: nickchalko
Date: Sat Jul 31 00:37:42 2004
New Revision: 31019

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

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:37:42 2004
@@ -40,15 +40,28 @@
   protected final String TEXT_16 = " was built on ";
   protected final String TEXT_17 = "." + NL + "\t * @return the String \"";
   protected final String TEXT_18 = "\"" + NL + "\t */" + NL + "\tpublic String getHost()
{return \"";
-  protected final String TEXT_19 = "\"; }" + NL + "\t" + NL + "\t\t" + NL + "\t/**" + NL
+ "\t * ";
+  protected final String TEXT_19 = "\"; }" + NL + "\t" + NL + "\t/**" + NL + "\t * ";
   protected final String TEXT_20 = " was built at ";
   protected final String TEXT_21 = "." + NL + "\t * @return the Date \"";
   protected final String TEXT_22 = "\"" + NL + "\t */" + NL + "\tpublic Date getDate() {return
new Date(";
-  protected final String TEXT_23 = "l); }" + NL + "\t" + NL + "\t/**" + NL + "\t * ";
-  protected final String TEXT_24 = " ";
-  protected final String TEXT_25 = "." + NL + "\t * @return the String \"";
-  protected final String TEXT_26 = "\"" + NL + "\t */" + NL + "\tpublic String toString()
{return \"";
-  protected final String TEXT_27 = "\";}" + NL + "}    ";
+  protected final String TEXT_23 = "l); }" + NL + "\t" + NL + "\t/**" + NL + "\t * The ID
of the Version Specification." + NL + "\t * @return ID of the Version Specification." + NL
+ "\t * @see org.apache.depot.version.specification.VersionSpecificationFactory" + NL + "\t
*/" + NL + "\tpublic String getSpecificationId(){return \"";
+  protected final String TEXT_24 = "\";} " + NL + "\t" + NL + "\t" + NL + "\t/**" + NL +
"\t * ";
+  protected final String TEXT_25 = " ";
+  protected final String TEXT_26 = "." + NL + "\t * @return the String \"";
+  protected final String TEXT_27 = "\"" + NL + "\t */" + NL + "\tpublic String getShortVersion()
{return \"";
+  protected final String TEXT_28 = "\";}" + NL + "\t" + NL + "\t/**" + NL + "\t * ";
+  protected final String TEXT_29 = " ";
+  protected final String TEXT_30 = "." + NL + "\t * @return the String \"";
+  protected final String TEXT_31 = "\"" + NL + "\t */" + NL + "\tpublic String getLongVersion()
{return \"";
+  protected final String TEXT_32 = "\";}" + NL + "" + NL + "\t/**" + NL + "\t * ";
+  protected final String TEXT_33 = " ";
+  protected final String TEXT_34 = "." + NL + "\t * @return the String \"";
+  protected final String TEXT_35 = "\"" + NL + "\t */" + NL + "\tpublic String getDefaultVersion()
{return \"";
+  protected final String TEXT_36 = "\";}\t" + NL + "\t" + NL + "\t/**" + NL + "\t * ";
+  protected final String TEXT_37 = " ";
+  protected final String TEXT_38 = "." + NL + "\t * @return the String \"";
+  protected final String TEXT_39 = "\"" + NL + "\t */" + NL + "\tpublic String toString()
{return \"";
+  protected final String TEXT_40 = "\";}" + NL + "}    ";
 
     public String generate(String packageName,  String className, VersionMarker marker)
   {
@@ -98,14 +111,40 @@
     stringBuffer.append(TEXT_22);
     stringBuffer.append(getDate().getTime());
     stringBuffer.append(TEXT_23);
-    stringBuffer.append(marker.getId());
+    stringBuffer.append(marker.getSpecification().getId());
     stringBuffer.append(TEXT_24);
-    stringBuffer.append(marker.getLongVersion());
+    stringBuffer.append(marker.getId());
     stringBuffer.append(TEXT_25);
-    stringBuffer.append(marker.getLongVersion());
+    stringBuffer.append(marker.getShortVersion());
     stringBuffer.append(TEXT_26);
-    stringBuffer.append(marker.getLongVersion());
+    stringBuffer.append(marker.getShortVersion());
     stringBuffer.append(TEXT_27);
+    stringBuffer.append(marker.getShortVersion());
+    stringBuffer.append(TEXT_28);
+    stringBuffer.append(marker.getId());
+    stringBuffer.append(TEXT_29);
+    stringBuffer.append(marker.getLongVersion());
+    stringBuffer.append(TEXT_30);
+    stringBuffer.append(marker.getLongVersion());
+    stringBuffer.append(TEXT_31);
+    stringBuffer.append(marker.getLongVersion());
+    stringBuffer.append(TEXT_32);
+    stringBuffer.append(marker.getId());
+    stringBuffer.append(TEXT_33);
+    stringBuffer.append(marker.getDefaultVersion());
+    stringBuffer.append(TEXT_34);
+    stringBuffer.append(marker.getDefaultVersion());
+    stringBuffer.append(TEXT_35);
+    stringBuffer.append(marker.getDefaultVersion());
+    stringBuffer.append(TEXT_36);
+    stringBuffer.append(marker.getId());
+    stringBuffer.append(TEXT_37);
+    stringBuffer.append(marker.getLongVersion());
+    stringBuffer.append(TEXT_38);
+    stringBuffer.append(marker.getLongVersion());
+    stringBuffer.append(TEXT_39);
+    stringBuffer.append(marker.getLongVersion());
+    stringBuffer.append(TEXT_40);
     return stringBuffer.toString();
   }
 }

Mime
View raw message