开发者

Listen to all Perforce commands made by my client machine to server

Is it possible to somehow listen to all perforce cammands issued from my ma开发者_运维百科chine to the perforce server?

I did some googling yesterday and found a page somewhere about a perforce proxy or broker that would intercept perforce commands and allow you to do what you wanted with them before sending them to the server...and now can't find the page!

I am trying to debug our build process (built using Maven) that is failing while running the maven-release-plugin (prepare).

Cheers.


It was maybe P4Broker (it seems hard to find an official link, hence the google search).


Thanks for the reply - was the link I was looking for though turned out it wasn't what I wanted.

In the end I ended up modifying my Windows PATH so that 'p4' would not directly call perforce but instead execute a bat file:

@echo off

set PERFORCE_HOME="C:\Program Files (x86)\Perforce\p4.exe"
set OUTPUT_FILE=C:\batScripts\output\p4out.txt"

echo =========================== >> %OUTPUT_FILE%
echo ===== PERFORCE DEBUG ====== >> %OUTPUT_FILE%
echo =========================== >> %OUTPUT_FILE%
echo $ p4 %* >> %OUTPUT_FILE%
echo =========================== >> %OUTPUT_FILE%
echo Timestamp: %Date% %Time% >> %OUTPUT_FILE%
echo Vars: >> %OUTPUT_FILE%
%PERFORCE_HOME% set >> %OUTPUT_FILE%
echo ` >> %OUTPUT_FILE%

%PERFORCE_HOME% %*
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜