in clearcase-common/src/jetbrains/buildServer/vcs/clearcase/CCSnapshotView.java [125:147]
public void create(String reason) throws CCException {
try {
if (exists()) {
throw new CCException(String.format("The view \"%s\" already exists", getTag()));
}
if (myLocalPath.exists()) {
FileUtil.delete(myLocalPath);
LOG.debug(String.format("View's local folder '%s' has been dropt", myLocalPath));
}
final VobObjectParser result;
if (myGlobalPath != null) {
result = CTool.createSnapshotView(getTag(), getStream(), new File(myGlobalPath).getAbsolutePath(), myLocalPath.getAbsolutePath(), reason);
} else {
result = CTool.createSnapshotView(getTag(), getStream(), null, myLocalPath.getAbsolutePath(), reason);
}
myGlobalPath = result.getGlobalPath();
setConfigSpec(myConfigSpecs);
} catch (Exception e) {
dumpDirsHierarchy(myLocalPath.getAbsolutePath());
throw new CCException(e);
}
}