| | |
| | | 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); |
| | |
| | | * @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(); |
| | |
| | | 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); |
| | | } |
| | | } |