cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sylv...@apache.org
Subject cvs commit: cocoon-2.0/src/java/org/apache/cocoon/generation DirectoryGenerator.java
Date Fri, 16 May 2003 09:51:36 GMT
sylvain     2003/05/16 02:51:36

  Modified:    src/java/org/apache/cocoon/generation
                        DirectoryGenerator.java
  Log:
  Backport the size attribute present in 2.1
  
  Revision  Changes    Path
  1.2       +5 -1      cocoon-2.0/src/java/org/apache/cocoon/generation/DirectoryGenerator.java
  
  Index: DirectoryGenerator.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.0/src/java/org/apache/cocoon/generation/DirectoryGenerator.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DirectoryGenerator.java	9 Mar 2003 00:02:58 -0000	1.1
  +++ DirectoryGenerator.java	16 May 2003 09:51:36 -0000	1.2
  @@ -122,6 +122,7 @@
       protected static final String FILENAME_ATTR_NAME    = "name";
       protected static final String LASTMOD_ATTR_NAME     = "lastModified";
       protected static final String DATE_ATTR_NAME        = "date";
  +	protected static final String SIZE_ATTR_NAME        = "size";
   
       /*
        * Variables set per-request
  @@ -346,6 +347,9 @@
           attributes.addAttribute("", DATE_ATTR_NAME,
                       DATE_ATTR_NAME, "CDATA",
                       dateFormatter.format(new Date(lastModified)));
  +		attributes.addAttribute("", SIZE_ATTR_NAME,
  +					SIZE_ATTR_NAME, "CDATA",
  +					Long.toString(path.length()));
   
           if (this.isRequestedDirectory) {
               attributes.addAttribute("", "requested", "requested", "CDATA",
  
  
  

Mime
View raw message