use of environment variables in templates
Posted: Thu Feb 06, 2014 3:57 pm
Hi all,
I'd like to use environment variables with code templates and templates. For example : when creating a new file from a template, the name of the user is in a <user>name</user> element. Aren't the username in the system propreties or the operating sytstem properties ?
I admit I don't quite get the documentation of http://www.oxygenxml.com/doc/ug-editor/ ... ables.html
and especially this :
thanks
emma
I'd like to use environment variables with code templates and templates. For example : when creating a new file from a template, the name of the user is in a <user>name</user> element. Aren't the username in the system propreties or the operating sytstem properties ?
I admit I don't quite get the documentation of http://www.oxygenxml.com/doc/ug-editor/ ... ables.html
and especially this :
Could you provide one or two examples ?${env(VAR_NAME)} - Value of the VAR_NAME environment variable. The environment variables are managed by the operating system. If you are looking for Java System Properties, use the ${system(var.name)} editor variable;
${system(var.name)} - Value of the var.name Java System Property. The Java system properties can be specified in the command line arguments of the Java runtime as -Dvar.name=var.value. If you are looking for operating system environment variables, use the${env(VAR_NAME)} editor variable instead;
thanks
emma