mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-21 07:05:58 +02:00
[376738] PropertyFileProvider should catch exceptions in care a written profile was corrupted
This commit is contained in:
parent
5230c4fc5f
commit
947ad18c50
1 changed files with 9 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* Copyright (c) 2006, 2008 IBM Corporation and others. All rights reserved.
|
* Copyright (c) 2006, 2012 IBM Corporation and others. All rights reserved.
|
||||||
* This program and the accompanying materials are made available under the terms
|
* This program and the accompanying materials are made available under the terms
|
||||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||||
|
@ -16,6 +16,7 @@
|
||||||
* David Dykstal (IBM) - [189274] provide import and export operations for profiles
|
* David Dykstal (IBM) - [189274] provide import and export operations for profiles
|
||||||
* David Dykstal (IBM) - [225988] need API to mark persisted profiles as migrated
|
* David Dykstal (IBM) - [225988] need API to mark persisted profiles as migrated
|
||||||
* David Dykstal (IBM) - [252357] made nested property sets and properties embedded nodes in the persistent form
|
* David Dykstal (IBM) - [252357] made nested property sets and properties embedded nodes in the persistent form
|
||||||
|
* David McKnight (IBM)- [376738] PropertyFileProvider should catch exceptions in care a written profile was corrupted
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
package org.eclipse.rse.internal.persistence;
|
package org.eclipse.rse.internal.persistence;
|
||||||
|
|
||||||
|
@ -795,8 +796,14 @@ public class PropertyFileProvider implements IRSEPersistenceProvider, IRSEImport
|
||||||
for (Iterator z = childNames.iterator(); z.hasNext();) {
|
for (Iterator z = childNames.iterator(); z.hasNext();) {
|
||||||
String childName = (String) z.next();
|
String childName = (String) z.next();
|
||||||
Properties p = getProperties(childPropertiesMap, childName);
|
Properties p = getProperties(childPropertiesMap, childName);
|
||||||
|
try {
|
||||||
makeNode(node, location, p, monitor);
|
makeNode(node, location, p, monitor);
|
||||||
}
|
}
|
||||||
|
catch (Exception e){
|
||||||
|
// minimize impact of unexpected exception
|
||||||
|
logException(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
for (Iterator z = referenceKeys.iterator(); z.hasNext();) {
|
for (Iterator z = referenceKeys.iterator(); z.hasNext();) {
|
||||||
String key = (String) z.next();
|
String key = (String) z.next();
|
||||||
String childLocationName = properties.getProperty(key);
|
String childLocationName = properties.getProperty(key);
|
||||||
|
|
Loading…
Add table
Reference in a new issue