offsetpath field in meta files was absolute; should be relative to workspace
This commit is contained in:
parent
eb37e31094
commit
c8fa1243fd
1 changed files with 7 additions and 0 deletions
|
|
@ -563,6 +563,13 @@ class MetaInfo extends GISJsonSerialised {
|
||||||
pathRelative = mypath
|
pathRelative = mypath
|
||||||
script.echo("Path relative is unchanged: ${pathRelative}")
|
script.echo("Path relative is unchanged: ${pathRelative}")
|
||||||
}
|
}
|
||||||
|
// Strip leading / if any
|
||||||
|
pathRelative = pathRelative.replaceAll("^/+", "")
|
||||||
|
// Strip leading \ if any
|
||||||
|
pathRelative = pathRelative.replaceAll("^\\+", "")
|
||||||
|
|
||||||
|
script.echo("Path relative is ${pathRelative}")
|
||||||
|
|
||||||
return pathRelative
|
return pathRelative
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue