Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Is that possible to set a property on kettle.property using an enviroment variable?

  1. #1
    Join Date
    Feb 2016
    Posts
    3

    Question Is that possible to set a property on kettle.property using an enviroment variable?

    is that possible to define a property on the kettle.property using an enviroment variable?
    for example: Lets set the property REPOSITORY_PATH using a enviroment variable called PROJECT:
    the PROJECT variable will be setting on the Spoon.bat. (-DPROJECT="WHATEVER")
    on the kettle.property: REPOSITORY_PATH=c:\data\reposiroties\%PROJECT%
    how can I do that? I have already tryed %%PROJECT%% and $[PROJECT] but none of them seems to work.
    any idea?
    Thanks, I appreciate your time

  2. #2
    Join Date
    Aug 2011
    Posts
    360

    Default

    You can use ${PROJECT} (with braces nt brackets)
    The value wont be resolved at the time of pwntaho read the file, but at the time you use the variable in pentaho,
    since PROJECT env var will be a pdi variable too.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.