private void doIncludeResource(Jar jar, Map<String, Map<String, String>> clauses) throws ZipException, IOException, Exception { for (Map.Entry<String, Map<String, String>> entry : clauses.entrySet()) { doIncludeResource(jar, entry.getKey(), entry.getValue()); } }
private void doIncludeResource(Jar jar, String includes) throws Exception { Map<String, Map<String, String>> clauses = parseHeader(includes); doIncludeResource(jar, clauses); }
/** * Parse the Bundle-Includes header. Files in the bundles Include header are * included in the jar. The source can be a directory or a file. * * @throws IOException * @throws FileNotFoundException */ private void doIncludeResources(Jar jar) throws Exception { String includes = getProperty("Bundle-Includes"); if (includes == null) { includes = getProperty(INCLUDERESOURCE); if (includes == null) includes = getProperty("Include-Resource"); } else warning("Please use -includeresource instead of Bundle-Includes"); if (includes == null) return; Map<String, Map<String, String>> clauses = parseHeader(includes); for (Iterator<Map.Entry<String, Map<String, String>>> i = clauses .entrySet().iterator(); i.hasNext();) { Map.Entry<String, Map<String, String>> entry = i.next(); doIncludeResource(jar, entry.getKey(), entry.getValue()); } }
/** * Parse the Bundle-Includes header. Files in the bundles Include header are * included in the jar. The source can be a directory or a file. * * @throws IOException * @throws FileNotFoundException */ private void doIncludeResources(Jar jar) throws Exception { String includes = getProperty("Bundle-Includes"); if (includes == null) { includes = getProperty(INCLUDERESOURCE); if (includes == null || includes.length() == 0) includes = getProperty("Include-Resource"); } else warning("Please use -includeresource instead of Bundle-Includes"); doIncludeResource(jar, includes); }
addWabLib(next, f); doIncludeResource(next, wab); return next;