I have not yet used any "java scripting" (JSR223) and my question is related to linux (and windows).
Is there an easy way (after installing the scripting language and java) to do the following:
- Run a Script (in the respective language) that imports a template
(=a file with
placeholders/variables). - That furthermore imports (read from filesystem) a config file with
key=value pairs (java properties
file) - And fills in the placeholder with the key-value pairs.
- And writes the “merged” content into a file on the filesystem…
(This
script should be easily be callable
like “java scriptingenvironment
scriptname myparameters”)
Is this easily possible and/or have you done this before? And do you even know any links where this has been described/done before?
Thank you very much!!!!
Markus
This comes very close: https://developer.mozilla.org/en/Rhino_Shell