In the Eclipse IDE, create a new connector project.
Click
File
New
Project
.
The
New Informatica Connector Project
page appears.
Enter the connector ID, connector name, vendor ID, and vendor name.
Click
Finish
.
Select
Window
Perspective
Open Perspective
Other
.
A window appears with a list of open perspectives.
Select
Informatica Connector
from the list of perspectives.
The P4 connections view and P4 pending changelists view are displayed in the Informatica Connector perspective:
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:
Use the
p4ignore
file to exclude the files such as the generated class files, log files, and temp files from being tracked for checkin.
Right click on the P4 Connections view and click
New connection
.
The
Perforce Server Connection Wizard
window appears.
Specify the server details and the perforce user account details.
The following image shows the perforce server connection page:
Click
Next
.
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.
Clear the
Launch the Perforce Project Import Wizard
check box, and click
Finish
.
The connection is created.
In the P4 Connections view, right click on the connection, and select
Edit Perforce Workspace
.
The
Workspace
window appears.
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:
Click
Save
.
The
Perforce Workspace
window appears.
Select the
Do not synchronize the projects
check box, and click
OK
.
Select
Window
Perspective
Open Perspective
Java
.
In the
Project Explorer
pane, select all the Java projects, right click, and navigate to
Team
Share Project
.
The
Share Project
window appears.
Select the Perforce repository type, and click
Next
.
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:
Click
Finish
.
In the
Project Explorer
pane, select all the Java projects, right click, and navigate to
Team
Mark for Add
.
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.
Right click on the default change list, and click
Submit
.
Specify the change list description, and click
Submit
.
The following image shows how to submit the files from the P4 pending changelist:
The connector source code is integrated with the Perforce server.
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.