lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/publication Publication.java
Date Fri, 08 Aug 2003 09:07:32 GMT
egli        2003/08/08 02:07:32

  Modified:    src/java/org/apache/lenya/cms/publication Publication.java
  Log:
  CONTENT_PATH (= "content") is now a constant of the publication.
  
  Initialize the siteTrees statically instead of dynamically.
  
  Revision  Changes    Path
  1.23      +3 -5      cocoon-lenya/src/java/org/apache/lenya/cms/publication/Publication.java
  
  Index: Publication.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/publication/Publication.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- Publication.java	8 Aug 2003 08:17:57 -0000	1.22
  +++ Publication.java	8 Aug 2003 09:07:32 -0000	1.23
  @@ -90,6 +90,7 @@
           "lenya" + File.separator + "pubs";
       public static final String PUBLICATION_PREFIX_URI = "lenya/pubs";
       public static final String CONFIGURATION_PATH = "config";
  +    public static final String CONTENT_PATH = "content";
   
       private static final String[] areas =
           { AUTHORING_AREA, LIVE_AREA, INFO_AREA, ADMIN_AREA };
  @@ -102,7 +103,7 @@
       private DocumentIdToPathMapper mapper = new DefaultDocumentIdToPathMapper();
       private ArrayList languages = new ArrayList();
       private String defaultLanguage = null;
  -    private HashMap siteTrees = null;
  +    private HashMap siteTrees = new HashMap();
   
       /** 
        * Creates a new instance of Publication
  @@ -294,9 +295,6 @@
   
           DefaultSiteTree sitetree = null;
   		
  -		if (siteTrees == null) {
  -			siteTrees = new HashMap();	 
  -		}
           if (siteTrees.containsKey(area)) {
               sitetree = (DefaultSiteTree)siteTrees.get(area);
           } else {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org


Mime
View raw message