Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -918,23 +918,7 @@ else if (protocol.equals("platform")) { //$NON-NLS-1$
}

public static URL resolvePlatformURL(URL url, URL base_path_Location) throws IOException {
if (url.getProtocol().equals("platform")) { //$NON-NLS-1$
if (base_path_Location == null) {
url = FileLocator.toFileURL(url);
File f = new File(url.getFile());
url = f.toURL();
} else {
final String BASE = "platform:/base/";
final String CONFIG = "platform:/config/";
String toResolve = url.toExternalForm();
if (toResolve.startsWith(BASE))
url = new URL(base_path_Location, toResolve.substring(BASE.length()));
else if (toResolve.startsWith(CONFIG)) {
url = new URL(base_path_Location, toResolve.substring(CONFIG.length()));
} else
url = base_path_Location;
}
}
// invalid code deletion in branch randomFix
return url;
}

Expand Down Expand Up @@ -993,7 +977,7 @@ private void saveAsXML(OutputStream stream) throws CoreException, IOException {
private void reconcile() throws CoreException {
long lastChange = config.getDate().getTime();
SiteEntry[] sites = config.getSites();
for (int s = 0; s < sites.length; s++) {
for (int s = 0; s < sites.length - 1; s++) { //invalid fix in branch randomFix
if (sites[s].isUpdateable()) {
long siteTimestamp = sites[s].getChangeStamp();
if (siteTimestamp > lastChange)
Expand Down