load variable from file (.ini, .properties, xml etc)



  • Avatar
    BitRock support

    Hi Ashok,

    We are sorry for the late reply. We have been facing some spam issues and we missed your post.

    You could the <foreach> action to loop over a file that defined variable names and values:

    <foreach variables="var val" values="${variables}">

    The <foreach> loop expect the values to be provided in space-separated (new-line included) pairs, so in case the value contains spaces, it should be quoted or surrounded by curly braces, e.g.:

    var1 value1
    var2 "value 2"
    var3 {value

    Would this work for you? Looking forward to your feedback,

    Comment actions Permalink
  • Avatar
    Ashok Mazumder

    I was able to use this:

    <values>var1 var2 var3</values>

    This worked for me only after declaring all these variables are already declared in installer xml. If you try to use some variable which is not declared in installer xml but available in data.properties. variables are not getting evaluated.

    Comment actions Permalink

Please sign in to leave a comment.