|
Lines 128-134
Link Here
|
| 128 |
// default the bootdelegation to all packages |
128 |
// default the bootdelegation to all packages |
| 129 |
if (System.getProperty(Constants.OSGI_BOOTDELEGATION) == null && !Constants.OSGI_BOOTDELEGATION_NONE.equals(System.getProperty(Constants.OSGI_JAVA_PROFILE_BOOTDELEGATION))) |
129 |
if (System.getProperty(Constants.OSGI_BOOTDELEGATION) == null && !Constants.OSGI_BOOTDELEGATION_NONE.equals(System.getProperty(Constants.OSGI_JAVA_PROFILE_BOOTDELEGATION))) |
| 130 |
System.getProperties().put(Constants.OSGI_BOOTDELEGATION, ""); //$NON-NLS-1$ |
130 |
System.getProperties().put(Constants.OSGI_BOOTDELEGATION, ""); //$NON-NLS-1$ |
| 131 |
|
131 |
// we need to set the install path as soon as possible so we can determine |
|
|
132 |
// the absolute location of install relative URLs |
| 133 |
URL installURL = LocationManager.getInstallLocation().getURL(); |
| 134 |
// assume install URL is file: based |
| 135 |
installPath = installURL.getPath(); |
| 132 |
} |
136 |
} |
| 133 |
|
137 |
|
| 134 |
public void initializeMetadata() { |
138 |
public void initializeMetadata() { |
|
Lines 333-341
Link Here
|
| 333 |
if (location != null) { |
337 |
if (location != null) { |
| 334 |
locationProperties.put("type", LocationManager.PROP_INSTALL_AREA); //$NON-NLS-1$ |
338 |
locationProperties.put("type", LocationManager.PROP_INSTALL_AREA); //$NON-NLS-1$ |
| 335 |
aContext.registerService(Location.class.getName(), location, locationProperties); |
339 |
aContext.registerService(Location.class.getName(), location, locationProperties); |
| 336 |
URL installURL = location.getURL(); |
|
|
| 337 |
// assume install URL is file: based |
| 338 |
installPath = installURL.getPath(); |
| 339 |
} |
340 |
} |
| 340 |
|
341 |
|
| 341 |
register(org.eclipse.osgi.service.environment.EnvironmentInfo.class.getName(), EnvironmentInfo.getDefault(), bundle); |
342 |
register(org.eclipse.osgi.service.environment.EnvironmentInfo.class.getName(), EnvironmentInfo.getDefault(), bundle); |