Walk a tree of imported meta

This commit is contained in:
Dan Hawkins 2021-12-14 09:43:38 +00:00
commit 6bf8b5886c

View file

@ -934,17 +934,14 @@ class MetaInfo extends GISJsonSerialised {
def MetaInfo mi = new MetaInfo(script)
def String nextpath
def importedmetafile
if (gatheredpath == '') {
nextpath = relatedmetainfo.offsetpath
importedmetafile = nextpath + '/' + metafilepath()
nextpath = "${relatedmetainfo.offsetpath}/${METAFOLDERNAME}"
} else {
nextpath = gatheredpath + '/' + relatedmetainfo.offsetpath
importedmetafile = nextpath + '/' + METAFILENAME
nextpath = "${gatheredpath}/${relatedmetainfo.offsetpath}"
}
def importedmetafile = "${nextpath}/${METAFILENAME}"
def boolean imported
if (script.fileExists(importedmetafile)) {
script.echo("Deserialising meta at file: ${importedmetafile}")
mi.deserialiseJson(importedmetafile)
imported = true
} else {