Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: How to get base directory path from my file repository

  1. #1
    Join Date
    Sep 2010
    Posts
    1

    Default How to get base directory path from my file repository

    Hello all,
    I want to put all my configuration files inside my file repository and access them using a relative path to my repository base dir.
    How can I get the base dir of my repository from inside my file input step? I cannot find such a variable.

    Example:
    Let's say the base dir of my file repository is defined in c:/PDI_REP.
    Let's say I have a conf file in c:/PDI_REP/CONFIG/config.properties
    In my file input step I need a variable giving me "c:/PDI_REP" as my base dir. This way I can set the file path to ${base_dir}/conf/config.properties.
    Any way to get such a variable (${base_dir}) ?

    Thanks.

  2. #2
    Join Date
    Nov 2009
    Posts
    688

    Default

    Declare a variable in the kettle.properties file. The value is your base dir. Then you can use that as a variable

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.