offsetpath field in meta files was absolute; should be relative to workspace
This commit is contained in:
parent
d7ecd0f180
commit
dedcdfd5e9
1 changed files with 2 additions and 4 deletions
|
|
@ -563,12 +563,10 @@ class MetaInfo extends GISJsonSerialised {
|
|||
pathRelative = mypath
|
||||
script.echo("Path relative is unchanged: ${pathRelative}")
|
||||
}
|
||||
// Convert \ with /
|
||||
pathRelative = pathRelative.tokenize('\\').join('/')
|
||||
// Strip leading / if any
|
||||
pathRelative = pathRelative.replaceAll('^/+', '')
|
||||
// Strip leading \ if any
|
||||
pathRelative = pathRelative.replaceAll('^\\+', '')
|
||||
// Convert \ with /
|
||||
pathRelative = pathRelative.replace('\\', '/')
|
||||
|
||||
script.echo("Path relative is ${pathRelative}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue