Lines 41-47
Link Here
|
41 |
*/ |
41 |
*/ |
42 |
package org.netbeans.modules.dlight.perfan.spi; |
42 |
package org.netbeans.modules.dlight.perfan.spi; |
43 |
|
43 |
|
44 |
import java.io.File; |
|
|
45 |
import java.io.IOException; |
44 |
import java.io.IOException; |
46 |
import java.io.OutputStreamWriter; |
45 |
import java.io.OutputStreamWriter; |
47 |
import java.util.ArrayList; |
46 |
import java.util.ArrayList; |
Lines 76-81
Link Here
|
76 |
import org.netbeans.modules.dlight.spi.SunStudioLocatorFactory; |
75 |
import org.netbeans.modules.dlight.spi.SunStudioLocatorFactory; |
77 |
import org.netbeans.modules.dlight.spi.collector.DataCollector; |
76 |
import org.netbeans.modules.dlight.spi.collector.DataCollector; |
78 |
import org.netbeans.modules.dlight.api.datafilter.DataFilter; |
77 |
import org.netbeans.modules.dlight.api.datafilter.DataFilter; |
|
|
78 |
import org.netbeans.modules.dlight.libs.common.PathUtilities; |
79 |
import org.netbeans.modules.dlight.perfan.impl.SunStudioDCConfigurationAccessor; |
79 |
import org.netbeans.modules.dlight.perfan.impl.SunStudioDCConfigurationAccessor; |
80 |
import org.netbeans.modules.dlight.perfan.spi.datafilter.SunStudioFiltersProvider; |
80 |
import org.netbeans.modules.dlight.perfan.spi.datafilter.SunStudioFiltersProvider; |
81 |
import org.netbeans.modules.dlight.perfan.spi.datafilter.THAFilter; |
81 |
import org.netbeans.modules.dlight.perfan.spi.datafilter.THAFilter; |
Lines 636-643
Link Here
|
636 |
// Try to remove _collector_directory_lock as well... |
636 |
// Try to remove _collector_directory_lock as well... |
637 |
// To make things simple - just do not look at the result of |
637 |
// To make things simple - just do not look at the result of |
638 |
// this operation (it will fail if lock file doesn't exist) |
638 |
// this operation (it will fail if lock file doesn't exist) |
639 |
File lockFile = new File(new File(experimentDirectory).getParentFile(), "_collector_directory_lock"); // NOI18N |
639 |
String dirName = PathUtilities.getDirName(experimentDirectory); |
640 |
rmFuture = CommonTasksSupport.rmFile(execEnv, lockFile.getPath(), null); |
640 |
String lockFile = dirName + "/" + "_collector_directory_lock"; // NOI18N |
|
|
641 |
rmFuture = CommonTasksSupport.rmFile(execEnv, lockFile, null); |
641 |
rmResult = rmFuture.get(); |
642 |
rmResult = rmFuture.get(); |
642 |
} |
643 |
} |
643 |
} catch (Throwable th) { |
644 |
} catch (Throwable th) { |
Lines 645-651
Link Here
|
645 |
} |
646 |
} |
646 |
|
647 |
|
647 |
if (!result) { |
648 |
if (!result) { |
648 |
log.severe("Unable to prepare an experiment directory!"); // NOI18N |
649 |
log.log(Level.SEVERE, "Unable to prepare an experiment directory!{0} at {1}", new Object[]{experimentDirectory, execEnv.toString()}); // NOI18N |
649 |
} |
650 |
} |
650 |
|
651 |
|
651 |
return result; |
652 |
return result; |