offsetpath field in meta files was absolute; should be relative to workspace

This commit is contained in:
Dan Hawkins 2019-02-26 17:07:33 +00:00
commit 8bfaeda1e1

View file

@ -561,7 +561,7 @@ class MetaInfo extends GISJsonSerialised {
def Path wspath = Paths.get(script.WORKSPACE)
def Path wsrelativePath = wspath.relativize(mypath)
pathRelative = wsrelativePath.toString()
script.echo("Extracted ${pathRelative} from ${wspath.toString()} and ${mypath.toString()}"
script.echo("Extracted ${pathRelative} from ${wspath.toString()} and ${mypath.toString()}")
} else {
pathRelative = mypath.toString()
script.echo("Path relative is unchanged: ${pathRelative}"