offsetpath field in meta files was absolute; should be relative to workspace
This commit is contained in:
parent
c8fa1243fd
commit
4425de19dc
1 changed files with 4 additions and 2 deletions
|
|
@ -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}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue