Table of Contents

Search

  1. Preface
  2. Introduction to Informatica Connector Toolkit
  3. Before you begin
  4. Develop a connector for Cloud Data Integration
  5. Develop a connector for Data Loader
  6. Import a connector
  7. Connection attributes
  8. Type system
  9. Connector metadata
  10. Partitioning capability
  11. Pushdown capability
  12. Mappings in advanced mode
  13. Manual changes to Informatica Connector Toolkit source code
  14. Runtime behavior
  15. Connector example: MySQL_Cloud
  16. Version control integration
  17. Appendix A: Metadata models
  18. Appendix B: ASO model
  19. Appendix C: Connector project migration
  20. Appendix D: Frequently used generic APIs in Informatica Connector Toolkit
  21. Appendix E: Frequently asked questions

Cloud Data Integration Connector Toolkit Developer Guide

Cloud Data Integration Connector Toolkit Developer Guide

Build a connector in Perforce

Build a connector in Perforce

In the Eclipse IDE, create a new connector project.
  1. Click
    File
    New
    Project
    .
    The
    New Informatica Connector Project
    page appears.
  2. Enter the connector ID, connector name, vendor ID, and vendor name.
  3. Click
    Finish
    .
  4. Select
    Window
    Perspective
    Open Perspective
    Other
    .
    A window appears with a list of open perspectives.
  5. Select
    Informatica Connector
    from the list of perspectives.
    The P4 connections view and P4 pending changelists view are displayed in the Informatica Connector perspective:
    The image shows the P4 connections view and the P4 pending changelists view.
  6. Perform the steps from Chapter 3 to create a new connector.
    After you create the connector, you will see a
    p4ignore
    file in the connector workspace:
    The P4ignore file appears in the connector workspace.
    Use the
    p4ignore
    file to exclude the files such as the generated class files, log files, and temp files from being tracked for checkin.
  7. Right click on the P4 Connections view and click
    New connection
    .
    The
    Perforce Server Connection Wizard
    window appears.
  8. Specify the server details and the perforce user account details.
    The following image shows the perforce server connection page:
    The Perforce sever connection wizard page shows the server details and the perforce user account details.
  9. Click
    Next
    .
  10. Select an existing Perforce workspace or create a new Perforce workspace.
    To create a new Perforce workspace, enter the workspace name. Enter the location or browse to the eclipse workspace of the current project and select the folder.
  11. Clear the
    Launch the Perforce Project Import Wizard
    check box, and click
    Finish
    .
    The connection is created.
  12. In the P4 Connections view, right click on the connection, and select
    Edit Perforce Workspace
    .
    The
    Workspace
    window appears.
  13. In the
    View
    tab, map the Perforce workspace that you created to the Perforce depot.
    Use the following format to map the Perforce workspace:
    //depot/MyProjects/... //MyConnector1/...
    The following image shows where you can map the Perforce workspace:
    Map the workspace view.
  14. Click
    Save
    .
    The
    Perforce Workspace
    window appears.
  15. Select the
    Do not synchronize the projects
    check box, and click
    OK
    .
  16. Select
    Window
    Perspective
    Open Perspective
    Java
    .
  17. In the
    Project Explorer
    pane, select all the Java projects, right click, and navigate to
    Team
    Share Project
    .
    The
    Share Project
    window appears.
  18. Select the Perforce repository type, and click
    Next
    .
  19. Select the Perforce connection from the drop down.
    Ensure that the current location and the target Perforce workspace location point to the same folder.
    The following image shows the Perforce connection and the target Perforce location:
    Enter the Perforce connection and the target Perforce workspace location.
  20. Click
    Finish
    .
  21. In the
    Project Explorer
    pane, select all the Java projects, right click, and navigate to
    Team
    Mark for Add
    .
  22. Go to the P4 pending changelists view and you can see all the Java source code and resource files are listed in the default change list.
  23. Right click on the default change list, and click
    Submit
    .
  24. Specify the change list description, and click
    Submit
    .
    The following image shows how to submit the files from the P4 pending changelist:
    Submit the files from the P4 pending changelist.
    The connector source code is integrated with the Perforce server.
  25. In the
    Project Explorer
    pane, you can right click on the java or resource file and make further changes to the files, such as check out, mark for delete, and get latest revision.
    You can switch back to the ICT view and continue with the connector development.

0 COMMENTS

We’d like to hear from you!