Walk a tree of imported meta
This commit is contained in:
parent
035977333b
commit
6bf8b5886c
1 changed files with 3 additions and 6 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue