From a8ee2169a9b743d48edd7cbc4de526d3eda0f080 Mon Sep 17 00:00:00 2001 From: Thierry Lacour Date: Wed, 2 Jan 2019 13:26:35 +0100 Subject: [PATCH] Fixed runtime casting issue due to misnamed import --- .../groovy/togit/migration/sources/ccucm/CcucmSource.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/groovy/togit/migration/sources/ccucm/CcucmSource.groovy b/src/main/groovy/togit/migration/sources/ccucm/CcucmSource.groovy index 4726c75..176a628 100644 --- a/src/main/groovy/togit/migration/sources/ccucm/CcucmSource.groovy +++ b/src/main/groovy/togit/migration/sources/ccucm/CcucmSource.groovy @@ -2,6 +2,7 @@ package togit.migration.sources.ccucm import net.praqma.clearcase.PVob as CoolVob import net.praqma.clearcase.ucm.entities.Component as CoolComponent +import net.praqma.clearcase.ucm.entities.Baseline as CoolBaseline import net.praqma.clearcase.ucm.entities.Project as CoolProject import net.praqma.clearcase.ucm.entities.Stream as CoolStream import net.praqma.clearcase.ucm.utils.BaselineList @@ -83,7 +84,7 @@ class CcucmSource implements MigrationSource { @Override void checkout(Snapshot snapshot) { - Baseline baseline = ((Baseline) snapshot).source + CoolBaseline baseline = ((Baseline) snapshot).source migrationStream = migrationStream ?: Cool.spawnChildStream(parentStream, baseline, "$component.shortname-2git-$id", options.readOnlyMigrationStream) migrationView = migrationView ?: Cool.spawnView(migrationStream, new File(workspace), "$component.shortname-2git-$id")