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 35646 - in incubator/depot/trunk/version/src: java/org/apache/depot/version/generation templates
Date Tue, 03 Aug 2004 21:58:29 GMT
Author: nickchalko
Date: Tue Aug  3 14:58:29 2004
New Revision: 35646

Modified:
   incubator/depot/trunk/version/src/java/org/apache/depot/version/generation/VersionSourceGenerator.java
   incubator/depot/trunk/version/src/templates/VersionSourceGenerator.java.jet
Log:
Refeacted out some date stuff.

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
Tue Aug  3 14:58:29 2004
@@ -53,8 +53,8 @@
   protected final String TEXT_27 = "\"; }" + NL + "\t" + NL + "\t/**" + NL + "\t * ";
   protected final String TEXT_28 = " was built at ";
   protected final String TEXT_29 = "." + NL + "\t * @return the Date \"";
-  protected final String TEXT_30 = "\"" + NL + "\t */" + NL + "\tpublic Date getDate() {return
new Date(";
-  protected final String TEXT_31 = "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_30 = "\"" + NL + "\t */" + NL + "\tpublic Date getDate() {return
";
+  protected final String TEXT_31 = "; }" + 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_32 = "\";} " + NL + "\t" + NL + "\t" + NL + "\t/**" + NL +
"\t * ";
   protected final String TEXT_33 = " ";
   protected final String TEXT_34 = "." + NL + "\t * @return the String \"";
@@ -140,7 +140,7 @@
     stringBuffer.append(TEXT_29);
     stringBuffer.append(getDate());
     stringBuffer.append(TEXT_30);
-    stringBuffer.append(getDate().getTime());
+    stringBuffer.append(getValueFrom(getDate()));
     stringBuffer.append(TEXT_31);
     stringBuffer.append(marker.getSpecification().getId());
     stringBuffer.append(TEXT_32);

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	Tue Aug  3
14:58:29 2004
@@ -73,7 +73,7 @@
 	 * <%=marker.getId()%> was built at <%=getDate()%>.
 	 * @return the Date "<%=getDate()%>"
 	 */
-	public Date getDate() {return new Date(<%=getDate().getTime()%>l); }
+	public Date getDate() {return <%=getValueFrom(getDate())%>; }
 	
 	/**
 	 * The ID of the Version Specification.

Mime
View raw message