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

This commit is contained in:
Dan Hawkins 2019-02-27 08:06:38 +00:00
commit 4c7726123e

View file

@ -564,9 +564,11 @@ class MetaInfo extends GISJsonSerialised {
script.echo("Path relative is unchanged: ${pathRelative}")
}
// Strip leading / if any
pathRelative = pathRelative.replaceAll("^/+", "")
pathRelative = pathRelative.replaceAll('^/+', '')
// Strip leading \ if any
pathRelative = pathRelative.replaceAll("^\\+", "")
pathRelative = pathRelative.replaceAll('^\\+', '')
// Convert \ with /
pathRelative = pathRelative.replaceAll('\\', '/')
script.echo("Path relative is ${pathRelative}")