Page 1 of 1

Example of using variable

Posted: Thu Jan 12, 2012 10:48 am
by daliboris
Hello, I can't find example of using system or environment variables.
First: what is the difference between "system" and "environment".
Second: how should be name of the variable formated.
Concrete example: I use Windows and I wan set path to the AltovaXML in Program Files folder, I want use Windows enviroment variable called %PROGRAMFILES%. How can I do that?

Thank you.

Re: Example of using variable

Posted: Thu Jan 12, 2012 4:37 pm
by adrian
Hello,

I'm not sure of the context where you want to use editor variables(transformation scenario, external tool, etc). Can you please clarify?

"System variables" refers to Java system properties. I've logged a documentation issue to clarify this in the Oxygen manual.

For the PROGRAMFILES environment variable you ca use:
${env(PROGRAMFILES)}

Regards,
Adrian

Re: Example of using variable

Posted: Tue Jan 24, 2012 11:04 pm
by daliboris
Thank you for youre example. It works.