From dd8e57fc6fd9a1b51f6212b3fabb6dacfc679cac Mon Sep 17 00:00:00 2001
From: ulrich@undisclosed <ulrich@ulrich-vaio>
Date: Tue, 21 Apr 2020 16:22:53 +0000
Subject: [PATCH] Code fuer die Transformation ueberarbeitet

---
 src/de/uhilger/wbx/WbxUtils.java |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/de/uhilger/wbx/WbxUtils.java b/src/de/uhilger/wbx/WbxUtils.java
index f2b7a1f..dc023e7 100644
--- a/src/de/uhilger/wbx/WbxUtils.java
+++ b/src/de/uhilger/wbx/WbxUtils.java
@@ -95,6 +95,9 @@
     Bild bild = new Bild();
     //WbxUtils wu = new WbxUtils();
     String basis = getJNDIParameter(WBX_FILE_BASE, WbxUtils.EMPTY_STRING);
+    if(basis.equals(WbxUtils.EMPTY_STRING)) {
+      basis = getWbxDataDir().getAbsolutePath();
+    }    
     String pubDirName = getJNDIParameter(WbxUtils.WBX_PUB_DIR_NAME, WbxUtils.WBX_DEFAULT_PUB_DIR_NAME);
     String pubUrlName = getJNDIParameter(WbxUtils.WBX_PUB_URL_NAME, WbxUtils.WBX_DEFAULT_PUB_URL_NAME);
     String relPath = relativePath.replace(pubUrlName, pubDirName);
@@ -192,6 +195,7 @@
    * @param dateizaehler 
    */
   public void collectFiles(File dir, int tiefe, List beitraege, int maxTiefe, int maxBeitraege) {
+    logger.fine(dir.getAbsolutePath());
     List dirs = new ArrayList();
     List beitraegeHier = new ArrayList();
     File[] files = dir.listFiles();
@@ -245,7 +249,7 @@
         String nm = bf.getName().toLowerCase();
         if(nm.endsWith(".htmi") || nm.endsWith(".html") || nm.endsWith(".htm") || 
            nm.endsWith(".jpg") || nm.endsWith(".jpeg") || nm.endsWith(".png") || 
-           nm.endsWith(".txt")) {
+           nm.endsWith(".txt") || nm.endsWith(".md")) {
           beitraege.add(bf);
         }
       }

--
Gitblit v1.9.3