WebBox Klassenbibliothek
ulrich@undisclosed
2020-05-28 bf412a896b52694891bc4b72dee092e026f6e667
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);
        }
      }