portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/services/template JetspeedTemplateService.java
Date Tue, 03 Apr 2001 12:13:45 GMT
ingo        01/04/03 05:13:45

  Modified:    src/java/org/apache/jetspeed/services/template
                        JetspeedTemplateService.java
  Log:
  [default.jsp bug] more log statements
  
  Revision  Changes    Path
  1.4       +12 -0     jakarta-jetspeed/src/java/org/apache/jetspeed/services/template/JetspeedTemplateService.java
  
  Index: JetspeedTemplateService.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/template/JetspeedTemplateService.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- JetspeedTemplateService.java	2001/03/13 11:53:38	1.3
  +++ JetspeedTemplateService.java	2001/04/03 12:13:45	1.4
  @@ -288,6 +288,7 @@
           }
           else
           {
  +        Log.debug("JetspeedTemplatePage.getLayoutTemplateName(" + key + ")");
               String[] names = parseScreenTemplate(key);
               name = names[2];
               addToCache( key, names[0], screenCache );
  @@ -629,11 +630,22 @@
        */
       private String getLayoutTemplateName(String pathRoot, String[] possiblePaths)
       {
  +        Log.debug("JetspeedTemplatePage.getLayoutTemplateName: pathRoot " + pathRoot);
  +
           for (int i=0; i<possiblePaths.length; i++)
           {
  +            Log.debug("JetspeedTemplatePage.getLayoutTemplateName: possiblePaths[" + i
+ "]=" + possiblePaths[i]);
  +	}
  +
  +        for (int i=0; i<possiblePaths.length; i++)
  +        {
               if (new File(pathRoot, "layouts" + possiblePaths[i]).exists())
               {
  +                Log.debug("JetspeedTemplatePage.getLayoutTemplateName: " + pathRoot + "/layouts"
+ possiblePaths[i] + " found.");
                   return possiblePaths[i];
  +            } else 
  +            {
  +                Log.debug("JetspeedTemplatePage.getLayoutTemplateName: " + pathRoot + "/layouts"
+ possiblePaths[i] + " NOT found.");
               }
           }
           return defaultLayoutTemplate;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message