Skip to content

Commit

Permalink
Fix component/stream vob location assumption
Browse files Browse the repository at this point in the history
  • Loading branch information
Thierry Lacour committed Feb 7, 2020
1 parent 0d94f84 commit 297e6cf
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/main/groovy/togit/migration/sources/ccucm/CcucmSource.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class CcucmSource implements MigrationSource {
CoolSnapshotView migrationView
CoolStream migrationStream

CoolVob vob
CoolVob streamVob
CoolVob componentVob
CoolComponent component
CoolStream stream
CoolStream parentStream
Expand All @@ -33,16 +34,18 @@ class CcucmSource implements MigrationSource {

@Override
void prepare() {
String vobName = CcucmStringHelper.parseName(options.stream).vob
String componentName = CcucmStringHelper.parseName(options.component).tag
String streamName = CcucmStringHelper.parseName(options.stream).tag
String componentVobName = CcucmStringHelper.parseName(options.component).vob
componentVob = Cool.findPVob(componentVobName)
component = Cool.findComponent(componentName, componentVob)

vob = Cool.findPVob(vobName)
component = Cool.findComponent(componentName, vob)
stream = Cool.findStream(streamName, vob)
String streamName = CcucmStringHelper.parseName(options.stream).tag
String streamVobName = CcucmStringHelper.parseName(options.stream).vob
streamVob = Cool.findPVob(streamVobName)
stream = Cool.findStream(streamName, streamVob)

if (options.migrationProject) {
CoolProject targetProject = CoolProject.get(options.migrationProject, vob).load()
CoolProject targetProject = CoolProject.get(options.migrationProject, streamVob).load()
parentStream = targetProject.integrationStream
} else {
parentStream = stream
Expand Down

0 comments on commit 297e6cf

Please sign in to comment.