IDEA Project and Perforce - in different folder trees?

Hi,

I'm on a project where I'm new to both IDEA and Perforce... This might be very simple but I just can't find the solution... I'm looking for a way to achieve this:

Sources under P4:

/path/to/p4/workspace/myproject/src
/path/to/p4/workspace/myproject/src/main
/path/to/p4/workspace/myproject/src/main/java
/path/to/p4/workspace/myproject/src/main/resources
/path/to/p4/workspace/myproject/src/main/webapp
/path/to/p4/workspace/myproject/src/test
/path/to/p4/workspace/myproject/src/test/java
/path/to/p4/workspace/myproject/pom.xml
etc.

Project files under my documents:

/users/me/documents/IDEA Projects/myproject
/users/me/documents/IDEA Projects/myproject/.idea
etc.

If I forget Perforce then I can do that by simply importing pom.xml and selecting "Keep project files in: /users/me/documents/IDEA Projects/myproject". But then I don't seem to be able to use Perforce as it wants to use the project root as actual root, not the P4 workspace root. Is there any workaround? If possible I'd like to avoid saving project related files to the P4 workspace (only sources etc).

TIA, Jan

3 comments

Please go to Settings | Version Control and replace <Project> mapping for Perforce with a directory mapping for your workspace root. That should allow Perforce integration to work with your project.

0

It still gives the error about "Wrong client specification" with "Client root" vs "Actual root". But it works nevertheless so I'm happy, thank You!

0

Please sign in to leave a comment.