1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-02 22:55:26 +02:00

[366070] [dstore] fix for bug 351993 won't allow tracing if .dstoreTrace doesn't exist

This commit is contained in:
David McKnight 2011-12-08 17:29:28 +00:00
parent 2f4cea89e5
commit b4bce4c9b9

View file

@ -38,6 +38,7 @@
* David McKnight (IBM) - [283613] [dstore] Create a Constants File for all System Properties we support
* David McKnight (IBM) - [340080] [dstore] empty string should not be allowed as a DataElement ID
* David McKnight (IBM) - [351993] [dstore] not able to connect to server if .eclipse folder not available
* David McKnight (IBM) - [366070] [dstore] fix for bug 351993 won't allow tracing if .dstoreTrace doesn't exist
*******************************************************************************/
package org.eclipse.dstore.core.model;
@ -3693,6 +3694,12 @@ public final class DataStore
if (SystemServiceManager.getInstance().getSystemService() == null){
String logDir = getUserPreferencesDirectory();
_traceFileHandle = new File(logDir, ".dstoreTrace"); //$NON-NLS-1$
if (!_traceFileHandle.exists()){
try { // try to create it
_traceFileHandle.createNewFile();
} catch (IOException e) {
}
}
if (_traceFileHandle.canWrite()){
try
{