Perforce Public Knowledge Base - Automated Install of Custom Tools in P4V and P4Win
Reset Search
 

 

Article

Automated Install of Custom Tools in P4V and P4Win

« Go Back

Information

 
Problem

How to do an automated install of custom tools in P4V and P4Win


Solution

P4V Under Windows:

  • Run:
echo %userprofile%
 
at the command line. This command displays the location of the ".p4qt" directory for the user.

  • In the ".p4qt" directory there is an XML file named "customtools.xml".
  • Create a script which locates "customtools.xml" and adds an entry to the file by traversing the DOM.

P4Win under Windows:

From the command line, enter:

p4win -T <file_path>


to import the custom tools from a file.


P4V under Mac OS X:

  • You can find the "customtools.xml" file under "/Library/Preferences/com.perforce.p4v".
  • Create a script which locates "customtools.xml", and  adds an entry to the file by traversing the DOM.

P4V under Linux/Unix:

  • The "customtools.xml" file is found in the ".p4qt" directory, which is in the user's home directory where P4V is installed.
  • As in the other OS platforms, the user needs to write a script which locates "customtools.xml",  and adds an entry to the file by traversing the DOM

Here is a sample script to automate an install of a custom tool under Windows: parseP4QT.py. Note that this script is not supported and should be well tested before being run in a production environment.
Related Links

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255