[Yanel-commits] rev 27088 - public/yanel/trunk/src/resources/directory/src/java/org/wyona/yanel/impl/resources

michi at wyona.com michi at wyona.com
Sat Sep 1 00:07:13 CEST 2007


Author: michi
Date: 2007-09-01 00:07:12 +0200 (Sat, 01 Sep 2007)
New Revision: 27088

Modified:
   public/yanel/trunk/src/resources/directory/src/java/org/wyona/yanel/impl/resources/DirectoryResource.java
Log:
code a bit cleaned

Modified: public/yanel/trunk/src/resources/directory/src/java/org/wyona/yanel/impl/resources/DirectoryResource.java
===================================================================
--- public/yanel/trunk/src/resources/directory/src/java/org/wyona/yanel/impl/resources/DirectoryResource.java	2007-08-31 21:40:06 UTC (rev 27087)
+++ public/yanel/trunk/src/resources/directory/src/java/org/wyona/yanel/impl/resources/DirectoryResource.java	2007-08-31 22:07:12 UTC (rev 27088)
@@ -146,7 +146,7 @@
             
             java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream();
             
-            Transformer transformerIntern = tfactory.newTransformer(getXSLTStreamSource( contentRepo));
+            Transformer transformerIntern = tfactory.newTransformer(getXSLTStreamSource(contentRepo));
             StreamSource orig = new StreamSource(new java.io.StringBufferInputStream(sb.toString()));
             
             transformerIntern.setParameter("yanel.path.name", PathUtil.getName(getPath()));
@@ -201,11 +201,9 @@
      * 
      */
     private StreamSource getXSLTStreamSource(Repository repo) throws RepositoryException {
-
-            File xsltFile = org.wyona.commons.io.FileUtil.file(rtd.getConfigFile().getParentFile().getAbsolutePath(), "xslt" + File.separator + "dir2xhtml.xsl");
-            log.debug("XSLT file: " + xsltFile);
-            return new StreamSource(xsltFile);
-        
+        File xsltFile = org.wyona.commons.io.FileUtil.file(rtd.getConfigFile().getParentFile().getAbsolutePath(), "xslt" + File.separator + "dir2xhtml.xsl");
+        if (log.isDebugEnabled()) log.debug("XSLT file: " + xsltFile);
+        return new StreamSource(xsltFile);
     }
 
     /**



More information about the Yanel-commits mailing list