cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gian...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/repository/java/org/apache/cocoon/generation TraversableGenerator.java
Date Fri, 13 Feb 2004 11:50:49 GMT
gianugo     2004/02/13 03:50:49

  Modified:    src/blocks/repository/java/org/apache/cocoon/generation
                        TraversableGenerator.java
  Log:
  Adding the absolute URI to resource listing.
  
  Revision  Changes    Path
  1.8       +4 -1      cocoon-2.1/src/blocks/repository/java/org/apache/cocoon/generation/TraversableGenerator.java
  
  Index: TraversableGenerator.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/repository/java/org/apache/cocoon/generation/TraversableGenerator.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- TraversableGenerator.java	8 Dec 2003 10:00:02 -0000	1.7
  +++ TraversableGenerator.java	13 Feb 2004 11:50:49 -0000	1.8
  @@ -148,6 +148,7 @@
       protected static final String RESOURCE_NODE_NAME = "resource";
   
       protected static final String RES_NAME_ATTR_NAME = "name";
  +    protected static final String URI_ATTR_NAME = "uri";
       protected static final String LASTMOD_ATTR_NAME = "lastModified";
       protected static final String DATE_ATTR_NAME = "date";
       protected static final String SIZE_ATTR_NAME = "size";
  @@ -522,6 +523,8 @@
           attributes.clear();
           attributes.addAttribute("", RES_NAME_ATTR_NAME,RES_NAME_ATTR_NAME,
                                   "CDATA", source.getName());
  +        attributes.addAttribute("", URI_ATTR_NAME,URI_ATTR_NAME,
  +                                "CDATA", source.getURI());
           attributes.addAttribute("", LASTMOD_ATTR_NAME, LASTMOD_ATTR_NAME,
                                   "CDATA", Long.toString(source.getLastModified()));
           attributes.addAttribute("", DATE_ATTR_NAME, DATE_ATTR_NAME,
  
  
  

Mime
View raw message