tmf: bug 517583 fix the experiment sync file path
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / tmf / core / trace / experiment / TmfExperiment.java
index 0f92bd13c748d0fb8206bcf396db0c6b1dcebad2..2e1d30dded3c35c40941c9bb6117a5999ff35651 100644 (file)
@@ -85,6 +85,11 @@ public class TmfExperiment extends TmfTrace implements ITmfPersistentlyIndexable
     // Constants
     // ------------------------------------------------------------------------
 
+    /**
+     * The file name of the Synchronization
+     */
+    private static final String SYNCHRONIZATION_FILE_NAME = "synchronization.bin"; //$NON-NLS-1$
+
     /**
      * The name of the directory containing trace synchronization data. This
      * directory typically will be preserved when traces are synchronized.
@@ -614,7 +619,7 @@ public class TmfExperiment extends TmfTrace implements ITmfPersistentlyIndexable
         try {
             String syncDirectory = getSynchronizationFolder(true);
 
-            final File syncFile = (syncDirectory != null) ? new File(syncDirectory + File.separator + getSynchronizationFolder(true)) : null;
+            final File syncFile = (syncDirectory != null) ? new File(syncDirectory + File.separator + SYNCHRONIZATION_FILE_NAME) : null;
 
             final SynchronizationAlgorithm syncAlgo = SynchronizationManager.synchronizeTraces(syncFile, Collections.singleton(this), doSync);
 
This page took 0.023924 seconds and 5 git commands to generate.