Help the meta walker find the meta data for a child
This commit is contained in:
parent
2a7e94b301
commit
d945efb8b7
1 changed files with 4 additions and 4 deletions
|
|
@ -1029,9 +1029,9 @@ class MetaInfo extends GISJsonSerialised {
|
|||
return [ 'metacollection' : results.metacollection, 'comment': results.comment ]
|
||||
}
|
||||
|
||||
def allrelatedmeta() {
|
||||
def allrelatedmeta(String metapath) {
|
||||
ArrayList<CollectedMeta> metacollection = new ArrayList<CollectedMeta>()
|
||||
return walkrelated(metacollection)
|
||||
return walkrelated(metacollection, '', 0, '', metapath)
|
||||
}
|
||||
|
||||
ArrayList<CollectedMeta> releasewalker(int maxdepth, String startpath = '', String startmetapath = '') {
|
||||
|
|
@ -1082,12 +1082,12 @@ class MetaInfo extends GISJsonSerialised {
|
|||
return new MetaInfo(script)
|
||||
}
|
||||
|
||||
def findAssociatedMeta(String productname, String subcomponentname) {
|
||||
def findAssociatedMeta(String parentmetapath, String productname, String subcomponentname) {
|
||||
def results = [
|
||||
'matchedmetaitem' : new CollectedMeta(this),
|
||||
'matchfound' : false
|
||||
]
|
||||
def walkresults = allrelatedmeta()
|
||||
def walkresults = allrelatedmeta(parentmetapath)
|
||||
for (dependentmetaitem in walkresults.metacollection) {
|
||||
script.echo("Comparing: ${dependentmetaitem.metainfo.productinfo.productname} ${dependentmetaitem.metainfo.productinfo.subcomponentname}")
|
||||
if (dependentmetaitem.metainfo.productinfo.productname == productname &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue