Container found = null; for (Container c : testpath) { if (c.getAttributes().containsKey("framework")) { if (found != null) { warning("Specifying multiple framework classes on the " + Constants.RUNPATH + "\n" + "Previous found: " + found.getProject() + " " + found.getAttributes() + "\n" + "Now found : " + c.getProject() + " " + c.getAttributes()); programArguments.add(c.getAttributes().get("framework")); found = c; if (c.getAttributes().containsKey("factory")) { if (found != null) { warning("Specifying multiple framework factories on the " + Constants.RUNPATH + "\n" + "Previous found: " + found.getProject() + " " + found.getAttributes() + "\n" + "Now found : " + c.getProject() + " " + c.getAttributes()); programArguments.add(c.getAttributes().get("factory")); found = c; String exports = c.getAttributes().get("export"); if (exports != null) { String parts[] = exports.split("\\s*,\\s*");
static void addToPackageList(Container container, String newPackageNames) { Set<String> merged = new HashSet<>(); String packageListStr = container.getAttributes() .get("packages"); if (packageListStr != null) mergeNames(packageListStr, merged); if (newPackageNames != null) mergeNames(newPackageNames, merged); container.putAttribute("packages", flatten(merged)); }
static void addToPackageList(Container container, String newPackageNames) { Set<String> merged = new HashSet<>(); String packageListStr = container.getAttributes() .get("packages"); if (packageListStr != null) mergeNames(packageListStr, merged); if (newPackageNames != null) mergeNames(newPackageNames, merged); container.putAttribute("packages", flatten(merged)); }
&& cpe.getAttributes() != null && VERSION_ATTR_PROJECT.equals(cpe.getAttributes().get(VERSION_ATTRIBUTE))) { && (cpe.getBundleSymbolicName().startsWith("ee.") || cpe.getAttributes().containsKey("boot"))) bootclasspath.add(cpe); else
&& cpe.getAttributes() != null && VERSION_ATTR_PROJECT.equals(cpe.getAttributes().get(VERSION_ATTRIBUTE))) { && (cpe.getBundleSymbolicName().startsWith("ee.") || cpe.getAttributes().containsKey("boot"))) bootclasspath.add(cpe); else
String importUses = cc.getAttributes().get("import-uses"); if (importUses != null) queue.addAll(0, parseHeader(importUses).entrySet());
if (agentClassName != null) { String agent = path; if (container.getAttributes() .get("agent") != null) { agent += "=" + container.getAttributes() .get("agent");
/** * Iterate over the entries and place the projects on the projects list and * all the files of the entries on the resultpath. * * @param resultpath * The list that gets all the files * @param projects * The list that gets any projects that are entries * @param entries * The input list of classpath entries */ private void doPath(Collection<Container> resultpath, Collection<Project> projects, Collection<Container> entries, Collection<Container> bootclasspath) { for (Container cpe : entries) { if (cpe.getError() != null) error(cpe.getError()); else { if (cpe.getType() == Container.TYPE.PROJECT) { projects.add(cpe.getProject()); } if (bootclasspath != null && (cpe.getBundleSymbolicName().startsWith("ee.") || cpe.getAttributes().containsKey("boot"))) bootclasspath.add(cpe); else resultpath.add(cpe); } } }
/** * Iterate over the entries and place the projects on the projects list and * all the files of the entries on the resultpath. * * @param resultpath * The list that gets all the files * @param projects * The list that gets any projects that are entries * @param entries * The input list of classpath entries */ private void doPath(Collection<Container> resultpath, Collection<Project> projects, Collection<Container> entries, Collection<Container> bootclasspath) { for (Container cpe : entries) { if (cpe.getError() != null) error(cpe.getError()); else { if (cpe.getType() == Container.TYPE.PROJECT) { projects.add(cpe.getProject()); } if (bootclasspath != null && cpe.getBundleSymbolicName().startsWith("ee.") || cpe.getAttributes().containsKey("boot")) bootclasspath.add(cpe); else resultpath.add(cpe); } } }
/** * Iterate over the entries and place the projects on the projects list and * all the files of the entries on the resultpath. * * @param resultpath * The list that gets all the files * @param projects * The list that gets any projects that are entries * @param entries * The input list of classpath entries */ private void doPath(Collection<Container> resultpath, Collection<Project> projects, Collection<Container> entries, Collection<Container> bootclasspath) { for (Container cpe : entries) { if (cpe.getError() != null) error(cpe.getError()); else { if (cpe.getType() == Container.TYPE.PROJECT) { projects.add(cpe.getProject()); } if (bootclasspath != null && cpe.getBundleSymbolicName().startsWith("ee.") || cpe.getAttributes().containsKey("boot")) bootclasspath.add(cpe); else resultpath.add(cpe); } } }
if (agentClassName != null) { String agent = path; if (container.getAttributes() .get("agent") != null) { agent += "=" + container.getAttributes() .get("agent");
&& VERSION_ATTR_PROJECT.equals(cpe.getAttributes() .get(VERSION_ATTRIBUTE))) { || cpe.getAttributes() .containsKey("boot"))) bootclasspath.add(cpe);
&& VERSION_ATTR_PROJECT.equals(cpe.getAttributes() .get(VERSION_ATTRIBUTE))) { || cpe.getAttributes() .containsKey("boot"))) bootclasspath.add(cpe);