@@ -24,7 +24,8 @@ class CcucmSource implements MigrationSource {
24
24
CoolSnapshotView migrationView
25
25
CoolStream migrationStream
26
26
27
- CoolVob vob
27
+ CoolVob streamVob
28
+ CoolVob componentVob
28
29
CoolComponent component
29
30
CoolStream stream
30
31
CoolStream parentStream
@@ -33,16 +34,18 @@ class CcucmSource implements MigrationSource {
33
34
34
35
@Override
35
36
void prepare () {
36
- String vobName = CcucmStringHelper . parseName(options. stream). vob
37
37
String componentName = CcucmStringHelper . parseName(options. component). tag
38
- String streamName = CcucmStringHelper . parseName(options. stream). tag
38
+ String componentVobName = CcucmStringHelper . parseName(options. component). vob
39
+ componentVob = Cool . findPVob(componentVobName)
40
+ component = Cool . findComponent(componentName, componentVob)
39
41
40
- vob = Cool . findPVob(vobName)
41
- component = Cool . findComponent(componentName, vob)
42
- stream = Cool . findStream(streamName, vob)
42
+ String streamName = CcucmStringHelper . parseName(options. stream). tag
43
+ String streamVobName = CcucmStringHelper . parseName(options. stream). vob
44
+ streamVob = Cool . findPVob(streamVobName)
45
+ stream = Cool . findStream(streamName, streamVob)
43
46
44
47
if (options. migrationProject) {
45
- CoolProject targetProject = CoolProject . get(options. migrationProject, vob ). load()
48
+ CoolProject targetProject = CoolProject . get(options. migrationProject, streamVob ). load()
46
49
parentStream = targetProject. integrationStream
47
50
} else {
48
51
parentStream = stream
0 commit comments