mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-18 13:45:45 +02:00
[366070] [dstore] fix for bug 351993 won't allow tracing if .dstoreTrace doesn't exist
This commit is contained in:
parent
2f4cea89e5
commit
b4bce4c9b9
1 changed files with 7 additions and 0 deletions
|
@ -38,6 +38,7 @@
|
||||||
* David McKnight (IBM) - [283613] [dstore] Create a Constants File for all System Properties we support
|
* 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) - [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) - [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;
|
package org.eclipse.dstore.core.model;
|
||||||
|
@ -3693,6 +3694,12 @@ public final class DataStore
|
||||||
if (SystemServiceManager.getInstance().getSystemService() == null){
|
if (SystemServiceManager.getInstance().getSystemService() == null){
|
||||||
String logDir = getUserPreferencesDirectory();
|
String logDir = getUserPreferencesDirectory();
|
||||||
_traceFileHandle = new File(logDir, ".dstoreTrace"); //$NON-NLS-1$
|
_traceFileHandle = new File(logDir, ".dstoreTrace"); //$NON-NLS-1$
|
||||||
|
if (!_traceFileHandle.exists()){
|
||||||
|
try { // try to create it
|
||||||
|
_traceFileHandle.createNewFile();
|
||||||
|
} catch (IOException e) {
|
||||||
|
}
|
||||||
|
}
|
||||||
if (_traceFileHandle.canWrite()){
|
if (_traceFileHandle.canWrite()){
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue