Get path to perforce executable

Is there any way to find the current configured value of "Path to P4 executable"? We need to use a different alias for P4 and we want to put a configuration check in our plugin that finds out the current configured path to the p4 executable and modifies it for the user if needed (programatically).

2 comments

Hello Sundaresan,

Please

- add IDEA_INSTALLATION/plugins/PerforceIntegration/lib/PerforceIntegration.jar to your plugin sdk,
- add <depends>PerforceDirectPlugin</depends> to plugin.xml
- use something like



        PerforceVcs perforceVcs = PerforceVcs.getInstance(myProject);
        PerforceSettings settings = perforceVcs.getSettings();

        // this is path to executable
        settings.pathToExec        

in code

0

Greetings! I am looking for similar info and I am so glad to read the shared info here. Anyway, how many years have you been doing programs? I am so impress with your intelligence. Programmig is quite difficult to perform but so challenging. http://guyriordan.me/contact-guy-riordan/

---
Original message URL: http://devnet.jetbrains.net/message/5449738#5449738

0

Please sign in to leave a comment.