Sunday, December 13, 2009

How to Integrating P4 (Perforce) to IntelliJ Idea


We can reduce our development time, by integrating Perforce to IntelliJ Idea

Things that we can achieve with this are…

-We can open the file for edit form the Idea (don’t need to go to p4 client..)
-Without going to the P4 revision history, from the Idea itself we can see the changelist details and the diff reports
-We can add the new changlist, move the file between the changelists.
-more or less everything .. what we are doing with the p4 client


I have given a try.. I did not see any major/performance issues..

Here is the process..

1) Add a file “P4CONFIG.cfg” in each of the client specs by mentioning the following details..
a. P4CLIENT=<P4 client spec name>
b. P4USER=<username>
2) Set “P4CONFIG=P4CONFIG.cfg”, in the environment variables..
3) In Idea, go to settings click “Version Control”, which will open a “Version Control” configuration window..
4) In the “Default Module Version Control” tab, select Perforce and click the button “Configure”, which will open a “Version Control Configurations” window.
5) Select the option “Perforce Enabled”
6) Select the option ”Use P4CONFIG or default connection ”
7) Specify the “p4.exe” path
8) If you want select “Show branching history..” and click OK button
9) Also click OK button in the “Version Control” window
10) Close “Settings” window and restart the IntelliJ Idea.

Stumble
Delicious
Technorati
Twitter

0 Comments:

Post a Comment