Uploaded image for project: 'YADE - Yet Another Data Exchange Tool'
  1. YADE - Yet Another Data Exchange Tool
  2. YADE-47

Make parameter-substitution in profiles available

    XMLWordPrintable

Details

    • Feature
    • Status: Released (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 1.9.6, 1.10
    • YADE Client
    • None

    Description

      It should be possible to use parameters from a profile as variables for a substitution of the values of other parameters.

      Some special variables can be also used for substitution:

      Further all environment variables are considered.

      Variables to substitute are recognized by:

      ${...}
      %{...}
      %...%
      

      You can prevent the substitution with a prefixed backslash where the backslashes will be removed after substitution

      \${...}
      \%{...}
      \%...%
      


      Linux example
      [substitute-test]
      source_protocol      = local
      source_dir           = ${HOME}/data
      log_filename         = ${source_dir}/logs/${profile}-${uuid}.log
      cannotsubstituted    = ${foo}
      
      Windows example
      [substitute-test]
      source_protocol      = local
      source_dir           = ${USERPROFILE}/data
      log_filename         = ${source_dir}/logs/${profile}-${uuid}.log
      cannotsubstituted    = ${foo}
      

      If a parameter has a variable which cannot subsitute then a warning is logged

      possible wrong variable value specified in '<value>' of key '<key>'. not substituted."
      

      Attachments

        Issue Links

          Activity

            People

              oh Oliver Haufe
              aa Alan Amos
              Oliver Haufe Oliver Haufe
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Remaining Estimate - 1 day
                  1d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified