Is it possible to get a value from the environment variables defined at local.properties configuration file and access it via the impex file?
Ex.
$someMacro=<some variable from config>
Thank you!
Is it possible to get a value from the environment variables defined at local.properties configuration file and access it via the impex file?
Ex.
$someMacro=<some variable from config>
Thank you!
To complete @Atsusa Kai answer, the line with a header alone can be avoided.
It's quite ugly to have this line just to load the properties... but that's actually what is mentionned in the
ConfigPropertyImportProcessor
class comment :The alternative is to used a beanshell command that are tailored for this kind of action.
You can replace the UPDATE GenericItem line by
but you need to enable code execution.
You can add this to your impex:
All your configurations from local.properties, etc. are now loaded and can be used via
$config-
prefix, say for example:local.properties
So your impex would look something like:
Hope this works for you.
EDIT: Please also note that if there was no such property found, the value stored on the sample above shall be exactly:
$config-your.config.property
.