multiple perforce clients in a single project?
I still can't figure out how to configure multiple perforce clients within a single project. Why do I need to do this, you ask? Our build system requires multiple perforce clients depending on what's being built. Since there are some code dependencies between these clients, I like to have everything in intellij at once. This means I have multiple content roots with different perforce client specifications. All I want is for IntelliJ to know which client spec to use for a given file. Command-line P4 figures it out because I have P4CONFIG set to p4config.txt, which in turn names the appropriate client.
With 7.0M1a it seems like the directory-based VCS configuration would be ideal. But
a) the Perforce configuration itself is shared by all directory-based configs, so I don't really understand what the directory-based config is for.
b) I tried specifying Use P4CONFIG in the VCS config dialog but I get "Cannot execute: invalid connection."
Is there any hope, or should I just forget it? I've managed all these years without it, so it's not that big of a deal.... but it would be nice.
Thanks,
Jeff
Please sign in to leave a comment.
Hello Jeffrey,
In fact the "Use P4CONFIG" option was designed exactly for that purpose,
and it should work just fine in 6.0.x. There's a problem in 7.0M1 which causes
"Test Connection" not to work properly for such connections, but it should
be fixed in the build 6913 which is available at http://www.jetbrains.net/confluence/display/IDEADEV/Selena+EAP
If 6913 doesn't work either, I'll be happy to help you troubleshoot the problem
further.
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
That would be excellent. I tried again, this time with the new build, and I created a fresh project with two content roots, one for each perforce client, and I specified the actual roots, not subdirs. VCS works fine for the first one, but not the second. Thet both have p4config.txt in the root.
Scratch that. It works fine now. I'm all set. Thanks!