Adding a Git repository to the z/OS Projects view

By adding your Git repository to the z/OS Projects view, you can use all of the IBM® Developer for z/OS® tools for enterprise development, Dependency Based Build (DBB), unit testing, and debugging with your repository files. If you did not already create z/OS projects when you cloned a Git repository, you can add them from the Working Tree folder of a cloned repository.

Before you start

Clone or create a Git repository by using the EGit tools in the Git Repository view. For more information, see these topics:

Creating a project

The source files in a cloned Git repository are located in the Working Tree folder. The Working Tree subfolders are referred to as applications. You can add the entire contents of a Git repository to a z/OS project, or you can add one or more applications.

  1. Add a Git repository to the Git Repositories view. For instructions, see Adding a repository in the EGit User Guide.
  2. In the Git Repositories view, right-click a repository or an application folder and click Create a z/OS Project. The Git repository or folder is added to the z/OS Projects view.
  3. To see the new project, click the z/OS Projects tab. The following demonstration includes the steps for adding a Git repository to the Git Repositories view.
    Creating a z/OS project from a Git repository
Importing a Git repository into a z/OS project creates a .project file in the root folder of the project:
  • If you import an entire repository, the .project file is added to the root folder of the project.
  • If you import one or more applications from the Working Tree folder, each application becomes a project, and the .project file is added to the root folder of each project.
The .project file defines the application as an Eclipse project. In this example, the <natures> attribute contains two values:
  • com.ibm.ft.ui.views.project.navigator.local defines the folder as a local z/OS project. This attribute enables the z/OS integrated development environment tools that are available in the z/OS Projects view.
  • com.ibm.ftt.dbbz.integration.dbbzprojectnature defines the folder as a DBBz project. This attribute enables the DBBz tools that are available in the z/OS Projects view.
A .project file in an application folder

What to do next

Setting up a project for a user build