Get current project directory

Highlighted
Six Stars

Get current project directory

Hello

I am using the Talend Studio with Git.

we are using one git repository per project.

 

When I checkout a project and create a local branch it seems to create a folder called 

 

/Users/me/talend-workspace/.repositories/1942550470/branches/develop/TESTPROJECT

 

I was wondering if I can get this file location through the studio?

 

Looking through system envs and properties I can see that I get a 

 

HOME=/Users/me

 

env but not much else.

 

Is there a way of getting more/all of this path programmatically....?

seems impossible to construct given the numerical folder....?

 

cheers

 

n9999

Community Manager

Re: Get current project directory

Hi
Can i know why you need to get this path?

Regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
Six Stars

Re: Get current project directory

Hi.

I would like to load some part of my context (Project wide properties that
are fixed across environments) from an external file at the root of my git
repository.


Cheers

Nomit
Community Manager

Re: Get current project directory

Hi Nomit
I have asked to our developers and was told that it is impossible to get this path programmatically in a job. For shared property file, we would suggest to put it to a server like FTP server, S3 server etc, download the file and load the value of context variable in the beginning of job, or store the value in database.

Regards
Shong

----------------------------------------------------------
Talend | Data Agility for Modern Business

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog