| | |
| | | * @return Verzeichnis 'daten' der WebBox |
| | | */ |
| | | public static File getWbxDataDir(ServletContext ctx) { |
| | | File file = getWbxDir(ctx); |
| | | file = new File(file, "daten/"); |
| | | logger.fine("WebBox Datenbasis: " + file.getAbsolutePath()); |
| | | return file; |
| | | } |
| | | |
| | | public static File getWbxDir(ServletContext ctx) { |
| | | String path = ctx.getRealPath("/"); |
| | | logger.fine("getRealPath: " + path); // file-cms in webapps |
| | | File file = new File(path); |
| | | file = file.getParentFile().getParentFile().getParentFile().getParentFile(); |
| | | file = new File(file, "daten/"); |
| | | logger.fine("Basis: " + file.getAbsolutePath()); |
| | | logger.fine("WebBox: " + file.getAbsolutePath()); |
| | | return file; |
| | | } |
| | | |