Variable Filters [message #1816169] |
Wed, 23 October 2019 07:30 |
|
I want to use a variable on windows for a path reference.
User is browsing and referencing directory C:\TEMP\X
So the variable DIR=C:\TEMP\X
This variable should now be stored inside eclipse.ini task as
-DDIR=C:/TEMP/X
I tried to achieve this by using an intermediate file URI and path afterwards.
variable: DIR
variable: fileURI_DIR=${DIR|uri}
Eclipse Ini: -DDIR=${fileURI_DIR|path} resulting in -DDIR=file:/C:/TEMP/X
So this looks for me like the path filter is not working on file URIs. I would expect to get -DDIR=C:/TEMP/X
Is there another way to achieve this?
Feature request:
How about enabling String.replaceAll(String regex, String replacement) variable filter.
${<variable>|replaceAll(regex,replacement)}
e.g. ${DIR|replaceAll("\\","/")} would do the trick then.
[Updated on: Wed, 23 October 2019 07:33] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03833 seconds