| | |
| | |
|
| | | private static final Logger logger = Logger.getLogger(HtmlExportService.class.getName());
|
| | |
|
| | | public static final String WBX_APPS_DIR = "wbx.apps";
|
| | | |
| | | /**
|
| | | * Den Inhalt eines Ordners als HTML exportieren
|
| | | *
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | | File catalinaBase = new File(getCatalinaBase(getServletContext()));
|
| | | File bsDir = new File(catalinaBase, "webapps/jslib/bootstrap/css/");
|
| | | //File catalinaBase = new File(getCatalinaBase(getServletContext()));
|
| | | File catalinaBase = new File(System.getProperty(WBX_APPS_DIR));
|
| | | File bsDir = new File(catalinaBase, "jslib/bootstrap/css/");
|
| | | try {
|
| | | FileUtils.copyFile(new File(bsDir, "bootstrap.min.css"), new File(outDir, "bootstrap.min.css"), true);
|
| | | File stile = new File(dir, "stile.css");
|
| | |
| | | }
|
| | | buildThumbnailImages(outDir, new Bild());
|
| | |
|
| | | File lbDir = new File(catalinaBase, "webapps/jslib/lightbox/");
|
| | | File lbDir = new File(catalinaBase, "jslib/lightbox/");
|
| | | FileUtils.copyDirectoryToDirectory(lbDir, outDir);
|
| | |
|
| | | File jqDir = new File(catalinaBase, "webapps/jslib/jquery/");
|
| | | File jqDir = new File(catalinaBase, "jslib/jquery/");
|
| | | FileUtils.copyDirectoryToDirectory(jqDir, outDir);
|
| | |
|
| | | File lbimgDir = new File(catalinaBase, "webapps/jslib/lightbox/img");
|
| | | File lbimgDir = new File(catalinaBase, "jslib/lightbox/img");
|
| | | FileUtils.copyDirectoryToDirectory(lbimgDir, outDir);
|
| | |
|
| | |
|
| | |
| | |
|
| | | private void printHeader(PrintWriter out) throws IOException {
|
| | | out.print("<!DOCTYPE html><html><head>\r\n");
|
| | | out.print("<meta charset=\"UTF-8\">\r\n");
|
| | | out.print("<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"/>");
|
| | | out.print("<link rel=\"stylesheet\" type=\"text/css\" href=\"bootstrap.min.css\">\r\n");
|
| | | out.print("<link rel=\"stylesheet\" type=\"text/css\" href=\"lightbox/lightbox.css\">\r\n");
|