Version Control Talend Open Studio project

ganesh ramaswamy
2 min readNov 28, 2014

--

Step 1 — In a new directory create a new project in Talend Open Studio (5.4.2 is version i used). Mine is called HelloTalend. Once you create the project DO NOT open it immediately. Talend will generate the following directories in your workspace.

Take backup of .metadata directory (cp -R .metadata .metadata_orig). This is extremely critical. Now all the files related to you project are present under HELLOTALEND directory (name of the project)

Step 2 —Add .metadata and project directory to git and commit it

Step 3 — Now open project in Talend open studio. In the right bottom corner you will see talend generating java and binaries that are required to build, run the project and jobs. Once this step is completed if you check the workspace you will see new directories there.

The directories .Java and .JETEmitters are the ones that has all binaries and java files are present. Also .metadata directory has new files now. These are things you do not want in git repo.

Step 4 — Add new job in talend with components, save your project and exit talend.

I added new job called newTest. Now if you do git status you will observe the following. In HELLOTALEND you will see the job files. Also new files in .metadata and other directories.

Step 5 — Now to add only your job to git replace the current .metadata directory with the one you saved at the start (rm -rf .metadata; cp -R .metadata_orig .metadata). If you do git status you will see that only your new files are ready to be added.

Now do git add to only these files under your project.

Now you are all set to track only your project files without any generated code or binaries.

--

--