public final static String PROP_ARGEO_OSGI_BUNDLES = "argeo.osgi.bundles";
public final static String PROP_ARGEO_OSGI_LOCATIONS = "argeo.osgi.locations";
public final static String PROP_ARGEO_OSGI_BASE_URL = "argeo.osgi.baseUrl";
- /** Use org.argeo.osgi */
+ /** @deprecated */
public final static String PROP_ARGEO_OSGI_MODULES_URL = "argeo.osgi.modulesUrl";
+ public final static String PROP_ARGEO_OSGI_DISTRIBUTION_URL = "argeo.osgi.distributionUrl";
// booleans
public final static String PROP_ARGEO_OSGI_BOOT_DEBUG = "argeo.osgi.boot.debug";
installUrls(getBundlesUrls());
installUrls(getLocationsUrls());
installUrls(getModulesUrls());
+ installUrls(getDistributionUrls());
checkUnresolved();
startBundles();
long duration = System.currentTimeMillis() - begin;
return urls;
}
+ /*
+ * DISTRIBUTION JAR INSTALLATION
+ */
+ public List getDistributionUrls() {
+ List urls = new ArrayList();
+ String distributionUrl = OsgiBootUtils
+ .getProperty(PROP_ARGEO_OSGI_DISTRIBUTION_URL);
+ if (distributionUrl == null)
+ return urls;
+ String baseUrl = OsgiBootUtils.getProperty(PROP_ARGEO_OSGI_BASE_URL);
+
+ DistributionBundle distributionBundle;
+ if (baseUrl != null
+ && !(distributionUrl.startsWith("http") || distributionUrl
+ .startsWith("file"))) {
+ // relative url
+ distributionBundle = new DistributionBundle(baseUrl,
+ distributionUrl);
+ } else {
+ distributionBundle = new DistributionBundle(distributionUrl);
+ if (baseUrl != null)
+ distributionBundle.setBaseUrl(baseUrl);
+
+ }
+ distributionBundle.processUrl();
+ return distributionBundle.listUrls();
+ }
+
/*
* MODULES LIST INSTALLATION (${argeo.osgi.modulesUrl})
*/
* If ${argeo.osgi.baseUrl} is set, URLs will be considered relative paths
* and be concatenated with the base URL, typically the root of a Maven
* repository.
+ *
+ * @deprecated
*/
public List getModulesUrls() {
List urls = new ArrayList();