/** * Just calls a new method with a default parm. * * @throws Exception */ Collection<Container> getBundles(Strategy strategy, String spec) throws Exception { return getBundles(strategy, spec, null); }
/** * Just calls a new method with a default parm. * * @throws Exception */ Collection<Container> getBundles(Strategy strategy, String spec) throws Exception { return getBundles(strategy, spec, null); }
/** * Just calls a new method with a default parm. * * @throws Exception */ Collection<Container> getBundles(Strategy strategy, String spec) throws Exception { return getBundles(strategy, spec, null); }
/** * Just calls a new method with a default parm. * * @throws Exception * */ Collection<Container> getBundles(Strategy strategy, String spec) throws Exception { return getBundles(strategy, spec, null); }
/** * Just calls a new method with a default parm. * * @throws Exception */ Collection<Container> getBundles(Strategy strategy, String spec) throws Exception { return getBundles(strategy, spec, null); }
/** * Just calls a new method with a default parm. * * @throws Exception */ Collection<Container> getBundles(Strategy strategy, String spec) throws Exception { return getBundles(strategy, spec, null); }
/** * Add the specification for a set of bundles the runpath if it does not * already is included. This can be used by subclasses to ensure the proper * jars are on the classpath. * * @param defaultSpec The default spec for default jars */ public void addDefault(String defaultSpec) throws Exception { Collection<Container> deflts = project.getBundles(Strategy.HIGHEST, defaultSpec, null); for (Container c : deflts) addClasspath(c); }
/** * Parse the list of bundles that are a prerequisite to this project. * Bundles are listed in repo specific names. So we just let our repo * plugins iterate over the list of bundles and we get the highest version * from them. */ private List<Container> parseBuildpath() throws Exception { List<Container> bundles = getBundles(Strategy.LOWEST, mergeProperties(Constants.BUILDPATH), Constants.BUILDPATH); return bundles; }
/** * Parse the list of bundles that are a prerequisite to this project. * Bundles are listed in repo specific names. So we just let our repo * plugins iterate over the list of bundles and we get the highest version * from them. * * @return */ private List<Container> parseBuildpath() throws Exception { List<Container> bundles = getBundles(Strategy.LOWEST, getProperty(Constants.BUILDPATH), Constants.BUILDPATH); return bundles; }
/** * Parse the list of bundles that are a prerequisite to this project. * Bundles are listed in repo specific names. So we just let our repo * plugins iterate over the list of bundles and we get the highest version * from them. * * @return */ private List<Container> parseBuildpath() throws Exception { List<Container> bundles = getBundles(Strategy.LOWEST, mergeProperties(Constants.BUILDPATH), Constants.BUILDPATH); return bundles; }
/** * Add the specification for a set of bundles the runpath if it does not * already is included. This can be used by subclasses to ensure the proper * jars are on the classpath. * * @param defaultSpec The default spec for default jars */ public void addDefault(String defaultSpec) throws Exception { Collection<Container> deflts = project.getBundles(Strategy.HIGHEST, defaultSpec, null); for (Container c : deflts) addClasspath(c); }
/** * Parse the list of bundles that are a prerequisite to this project. * Bundles are listed in repo specific names. So we just let our repo * plugins iterate over the list of bundles and we get the highest version * from them. * * @return */ private List<Container> parseBuildpath() throws Exception { List<Container> bundles = getBundles(Strategy.LOWEST, mergeProperties(Constants.BUILDPATH), Constants.BUILDPATH); return bundles; }
/** * Parse the list of bundles that are a prerequisite to this project. * Bundles are listed in repo specific names. So we just let our repo * plugins iterate over the list of bundles and we get the highest version * from them. */ private List<Container> parseBuildpath() throws Exception { List<Container> bundles = getBundles(Strategy.LOWEST, mergeProperties(Constants.BUILDPATH), Constants.BUILDPATH); return bundles; }
private List<Container> parseTestpath() throws Exception { return getBundles(Strategy.HIGHEST, mergeProperties(Constants.TESTPATH), Constants.TESTPATH); }
private List<Container> parseTestpath() throws Exception { return getBundles(Constants.STRATEGY_HIGHEST, getProperty(Constants.RUNPATH)); }
private List<Container> parseTestbundles() throws Exception { return getBundles(Constants.STRATEGY_HIGHEST, getProperty(Constants.RUNBUNDLES)); }
/** * Add the specification for a set of bundles the runpath if it does not * already is included. This can be used by subclasses to ensure the proper * jars are on the classpath. * * @param defaultSpec * The default spec for default jars */ public void addDefault(String defaultSpec) throws Exception { Collection<Container> deflts = project.getBundles(Strategy.HIGHEST, defaultSpec, null); for (Container c : deflts) addClasspath(c); }
/** * Add the specification for a set of bundles the runpath if it does not * already is included. This can be used by subclasses to ensure the proper * jars are on the classpath. * * @param defaultSpec * The default spec for default jars */ public void addDefault(String defaultSpec) throws Exception { Collection<Container> deflts = project.getBundles(Strategy.HIGHEST, defaultSpec, null); for (Container c : deflts) addClasspath(c); }
private List<Container> parseTestpath() throws Exception { return getBundles(Strategy.HIGHEST, getProperty(Constants.TESTPATH), Constants.TESTPATH); }
private Collection<Container> getRequiredBundles(final Project project) throws Exception { Collection<Attrs> attrs = project.getParameters(Constants.RUNREQUIRES, "bnd.identity") .values(); String value = ""; for (Attrs attrs2 : attrs) { value += attrs2.get("id"); } List<Container> containers = project.getBundles(Strategy.HIGHEST, value, Constants.RUNREQUIRES); return containers; }