Oracle by Example brandingUploading Application to Oracle Developer Cloud Service Git Repository using Oracle JDeveloper

section 0Before You Begin

This 15-minute tutorial shows you how to clone an Oracle Developer Cloud Service project Git repository to your local computer and then upload an Oracle Application Development Framework (Oracle ADF) application to it using Oracle JDeveloper.

Background

In this tutorial, you use the Oracle Alta UI Work Better sample application and upload it to a Git repository of your ORacle Developer Cloud Service project.

The Alta UI Work Better sample application is a demo application that uses the Alta UI to develop the most recent Oracle Cloud products.

What Do You Need?

  • A web browser
  • Your Oracle Cloud account credentials
  • An Oracle Cloud account with an active Oracle Developer Cloud Service instance
  • Oracle JDeveloper
  • Team Server configured to connect to your Oracle Developer Cloud Service instance
    See the Integrating Oracle Developer Cloud Service with JDeveloper OBE.
  • An Oracle Developer Cloud Service project with an empty Git repository
    This OBE assumes that you are using a Demo project with an empty adf-sample-application.git Git repository in it.
    See Create an empty Oracle Developer Cloud Service Project and Create and Populate a Git Repository OBEs to learn how to create a project and an empty Git repository.
  • Oracle Alta UI WorkBetterFaces Application Demo
    Click here to download the WorkBetterFaces.zip file to your computer.

section 1Clone the Project Git Repository

In this section, you clone the empty Git repository of your project to your computer using JDeveloper.

  1. In JDeveloper, select Window > Team to open the Team tab.
  2. Select the Demo project to open it.
    A project selected in the Team tab
    Description of the illustration clone_01.png
  3. In the Team tab, expand Sources and click the get link of the adf-sample-application.git repository.
    Sources section of the open project in the Team tab
    Description of the illustration clone_02.png
  4. In the Get Sources from Oracle Developer Cloud Services dialog box, click Get from Developer Server.
    Get Sources from Oracle Developer Cloud Service dialog box
    Description of the illustration clone_03.png
  5. On the Welcome page of the Clone from Git wizard, click Next.
    Welcome page of the Clone from Git wizard
    Description of the illustration clone_04.png
  6. On the Remote Repository page, click Next.
    Remote Repository page of the Clone from Git wizard
    Description of the illustration clone_05.png
    The wizard picks the values of Repository URL, Username, and Password from the Team Server.
  7. On the Remote Branch page, click Next.
    Remote Branch page of the Clone from Git wizard
    Description of the illustration clone_06.png
    The page is empty because the Git repository being cloned is empty.
  8. On the Destination page, if necessary, update the following values and click Next. The Checkout Branch drop-down list is expected to be empty.
    • Destination: The path of the directory where you want to clone the Git repository
    • Clone Name: The name of the cloned Git repository directory
    Destination page of the Clone from Git wizard
    Description of the illustration clone_07.png
  9. On the Git Clone Summary page, click Finish.
    Git Clone Summary page of the Clone from Git wizard
    Description of the illustration clone_08.png
  10. In the New Gallery dialog box that opens automatically, click Cancel to close the dialog box.

section 2Commit and Push the ADF Application to Oracle Cloud Developer Service

In this section, you add the Oracle Alta UI Work Better Application to the cloned Git repository directory.

  1. In the cloned repository directory, extract the contents of the Oracle Alta UI Work Better Application zip file.
    Explorer view of the cloned Git repository directory
    Description of the illustration commitpush_01.png
  2. In JDeveloper, select File > Open, and open the WorkBetterFaces application.
    Applications pane of JDeveloper
    Description of the illustration commitpush_02.png
  3. From the Team menu, select Git, and then select Add All.
    JDeveloper Team - Git submenu
    Description of the illustration commitpush_03.png
  4. In the Add All dialog box, click OK.
    Add All dialog box of JDeveloper
    Description of the illustration commitpush_04.png
    After all files are added to the staging index, notice that the icons in the Applications window now show a plus (+) sign in the lower-left corner.
    Applications pane of JDeveloper
    Description of the illustration commitpush_05.png
  5. From the Team menu, select Git, and then select Commit All.
    Team - Git submenu of JDeveloper
    Description of the illustration commitpush_06.png
  6. In the Commit All dialog box, enter Initial commit as comment in Comments, specify your name and email address in the Author and Commiter fields in the Name <email> format, and click OK.
    Commit All dialog box
    Description of the illustration commitpush_07.png
    Notice that the icons in the Applications window now show a yellow circle in the lower-left corner.
    Applications pane of JDeveloper
    Description of the illustration commitpush_08.png
  7. From the Team menu, select Git, and then select Push.
    Team - Git submenu of JDeveloper
    Description of the illustration commitpush_09.png
  8. On the Welcome page of the Push to Git wizard, click Next.
    Welcome page of the Push to Git wizard
    Description of the illustration commitpush_10.png
  9. On the Remote Repository page, click Next.
    Remote Repository page of the Push to Git wizard
    Description of the illustration commitpush_11.png
    The wizard picks the values of Repository URL, Username, and Password from the Team Server.
  10. On the Local Branch page, click Next.
    Local Branch page of the Push to Git wizard
    Description of the illustration commitpush_12.png
    The master branch was created automatically when you committed the application files.
  11. On the Commits page, click Next.
    Commits page of the Push to Git wizard
    Description of the illustration commitpush_13.png
  12. On the Git Push Summary page, click Finish.
    Git Push Summary page of the Push to Git wizard
    Description of the illustration commitpush_14.png
    A Git Push progress bar appears in the Status bar of JDeveloper. Wait for JDeveloper to push all files to the project Git repository.
  13. After the Git Push is completed, open the project in the Oracle Developer Cloud Service web interface and verify the commit on the Project page.
    Project page of the Oracle Developer Cloud Service project
    Description of the illustration commitpush_15.png

more informationWant to Learn More?