Get current project directory

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
Highlighted
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

Cloud Free Trial

Try Talend Cloud free for 30 days.

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.