/** * Turn this normal bundle in a web and add any resources. * * @throws Exception */ private Jar doWab(Jar dot) throws Exception { String wab = getProperty(WAB); String wablib = getProperty(WABLIB); if (wab == null && wablib == null) return dot; logger.debug("wab {} {}", wab, wablib); setBundleClasspath(append("WEB-INF/classes", getProperty(BUNDLE_CLASSPATH))); Set<String> paths = new HashSet<>(dot.getResources() .keySet()); for (String path : paths) { if (path.indexOf('/') > 0 && !Character.isUpperCase(path.charAt(0))) { logger.debug("wab: moving: {}", path); dot.rename(path, "WEB-INF/classes/" + path); } } Parameters clauses = parseHeader(getProperty(WABLIB)); for (Map.Entry<String, Attrs> entry : clauses.entrySet()) { File f = getFile(entry.getKey()); addWabLib(dot, f, entry.getKey(), entry.getValue()); } doIncludeResource(dot, wab); return dot; }
/** * Turn this normal bundle in a web and add any resources. * * @throws Exception */ private Jar doWab(Jar dot) throws Exception { String wab = getProperty(WAB); String wablib = getProperty(WABLIB); if (wab == null && wablib == null) return dot; logger.debug("wab {} {}", wab, wablib); setBundleClasspath(append("WEB-INF/classes", getProperty(BUNDLE_CLASSPATH))); Set<String> paths = new HashSet<>(dot.getResources() .keySet()); for (String path : paths) { if (path.indexOf('/') > 0 && !Character.isUpperCase(path.charAt(0))) { logger.debug("wab: moving: {}", path); dot.rename(path, "WEB-INF/classes/" + path); } } Parameters clauses = parseHeader(getProperty(WABLIB)); for (Map.Entry<String, Attrs> entry : clauses.entrySet()) { File f = getFile(entry.getKey()); addWabLib(dot, f, entry.getKey(), entry.getValue()); } doIncludeResource(dot, wab); return dot; }
f); } else { addWabLib(dot, sub);
f); } else { addWabLib(dot, sub);
sub, f); } else { addWabLib(dot, sub, part, Collections.emptyMap());
f); } else { addWabLib(dot, sub);
sub, f); } else { addWabLib(dot, sub, part, Collections.emptyMap());
/** * Turn this normal bundle in a web and add any resources. * * @throws Exception */ private Jar doWab(Jar dot) throws Exception { String wab = getProperty(WAB); String wablib = getProperty(WABLIB); if (wab == null && wablib == null) return dot; trace("wab %s %s", wab, wablib); setBundleClasspath(append("WEB-INF/classes", getProperty(BUNDLE_CLASSPATH))); Set<String> paths = new HashSet<String>(dot.getResources().keySet()); for (String path : paths) { if (path.indexOf('/') > 0 && !Character.isUpperCase(path.charAt(0))) { trace("wab: moving: %s", path); dot.rename(path, "WEB-INF/classes/" + path); } } Parameters clauses = parseHeader(getProperty(WABLIB)); for (String key : clauses.keySet()) { File f = getFile(key); addWabLib(dot, f); } doIncludeResource(dot, wab); return dot; }
/** * Turn this normal bundle in a web and add any resources. * * @throws Exception */ private Jar doWab(Jar dot) throws Exception { String wab = getProperty(WAB); String wablib = getProperty(WABLIB); if (wab == null && wablib == null) return dot; trace("wab %s %s", wab, wablib); setBundleClasspath(append("WEB-INF/classes", getProperty(BUNDLE_CLASSPATH))); Set<String> paths = new HashSet<String>(dot.getResources().keySet()); for (String path : paths) { if (path.indexOf('/') > 0 && !Character.isUpperCase(path.charAt(0))) { trace("wab: moving: %s", path); dot.rename(path, "WEB-INF/classes/" + path); } } Parameters clauses = parseHeader(getProperty(WABLIB)); for (String key : clauses.keySet()) { File f = getFile(key); addWabLib(dot, f); } doIncludeResource(dot, wab); return dot; }
/** * Turn this normal bundle in a web and add any resources. * * @throws Exception */ private Jar doWab(Jar dot) throws Exception { String wab = getProperty(WAB); String wablib = getProperty(WABLIB); if (wab == null && wablib == null) return dot; trace("wab %s %s", wab, wablib); setBundleClasspath(append("WEB-INF/classes", getProperty(BUNDLE_CLASSPATH))); Set<String> paths = new HashSet<String>(dot.getResources().keySet()); for (String path : paths) { if (path.indexOf('/') > 0 && !Character.isUpperCase(path.charAt(0))) { trace("wab: moving: %s", path); dot.rename(path, "WEB-INF/classes/" + path); } } Parameters clauses = parseHeader(getProperty(WABLIB)); for (String key : clauses.keySet()) { File f = getFile(key); addWabLib(dot, f); } doIncludeResource(dot, wab); return dot; }