You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by Jon Stevens <jo...@latchkey.com> on 2001/02/26 07:46:29 UTC

ooops

well, here is the top part at least. :-)

-jon


Hi. This is the qmail-send program at apache.org.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<ve...@jakarta.apache.org>:
ezmlm-reject: fatal: Sorry, I don't accept messages larger than 100000 bytes
(#5.2.3)

--- Below this line is a copy of the message.

Return-Path: <jo...@apache.org>
Received: (qmail 70811 invoked by uid 500); 26 Feb 2001 06:38:57 -0000
Delivered-To: apmail-jakarta-velocity-cvs@apache.org
Received: (qmail 70808 invoked by uid 1047); 26 Feb 2001 06:38:57 -0000
Date: 26 Feb 2001 06:38:57 -0000
Message-ID: <20...@apache.org>
From: jon@apache.org
To: jakarta-velocity-cvs@apache.org
Subject: cvs commit: jakarta-velocity/xdocs/stylesheets project.xml

jon         01/02/25 22:38:57

  Modified:    build    build-velocity.bat build-velocity.sh
                        build-velocity.xml
               docs     anakia.html code-standards.html contributors.html
                        design.html developer-guide.html differences.html
                        getting-started.html index.html install.html
                        license.html migration.html texen.html todo.html
                        user-guide.html vtl-reference-guide.html
               xdocs    anakia.xml code-standards.xml contributors.xml
                        design.xml developer-guide.xml differences.xml
                        getting-started.xml index.xml install.xml
                        license.xml migration.xml texen.xml todo.xml
                        user-guide.xml vtl-reference-guide.xml
  Added:       docs/images logo.gif
               xdocs/images logo.gif
               xdocs/stylesheets project.xml
  Removed:     build/lib stylebook-1.0-b2.jar
               docs     velocity.pdf
               docs/resources header.gif jakarta-logo.gif line.gif void.gif
               xdocs/skin loader.xml
               xdocs/skin/graphics button-a.gif button-b.gif
               xdocs/skin/resources header.gif jakarta-logo.gif line.gif
                        void.gif
               xdocs/skin/stylesheets book2project.xsl changes2document.xsl
                        context2label.xsl copyover.xsl
                        directory2project.xsl document2html.xsl
                        document2image.xsl document2project.xsl
                        faqs2document.xsl scan4resources.xsl spec2html.xsl
                        todo2document.xsl
  Log:
  moved from stylebook -> anakia for the documentation generate.
  
  thanks to Martin Poeschl <mp...@marmot.at> for the majority
  of the work!
  
  -jon
  
  Revision  Changes    Path
  1.11      +2 -0      jakarta-velocity/build/build-velocity.bat


-- 
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/> && <http://java.apache.org/turbine/>


[PATCH] org.apache.velocity.texen.util.StringUtil

Posted by Sean Legassick <se...@informage.net>.
StringUtil got broken by the change from Object[] for literal lists to
List...

This patches fixes it.


Index: StringUtil.java
===================================================================
RCS file: /home/cvspublic/jakarta-velocity/src/java/org/apache/velocity/texen/util/StringUtil.java,v
retrieving revision 1.8
diff -u -r1.8 StringUtil.java
--- StringUtil.java	2000/12/25 20:59:55	1.8
+++ StringUtil.java	2001/02/26 19:20:11
@@ -57,6 +57,7 @@
  */
 
 import java.io.File;
+import java.util.List;
 import java.util.StringTokenizer;
 
 /**
@@ -73,12 +74,12 @@
     /**
      * Concatenates a list of objects as a String
      */
-    public String concat (Object[] list)
+    public String concat (List list)
     {
         StringBuffer sb = new StringBuffer();
-        for (int i=0; i<list.length; i++)
+        for (int i=0; i<list.size(); i++)
         {
-            sb.append (list[i].toString());
+            sb.append (list.get(i).toString());
         }
         return sb.toString();
     }
@@ -191,12 +192,12 @@
         return argBuf.toString();
     }
 
-    public boolean allEmpty(Object[] list)
+    public boolean allEmpty(List list)
     {
-        int size = list.length;
+        int size = list.size();
         
         for (int i = 0; i < size; i++)
-            if ((list[i] != null) && (list[i].toString().length() > 0))
+            if ((list.get(i) != null) && (list.get(i).toString().length() > 0))
                 return false;
         
         return true;

-- 
Sean Legassick
sean@informage.net
      Jag är en man, ingenting mänskligt är främmande för mig