监听我的客户端机器向服务器发出的所有 Perforce 命令

发布于 2024-08-31 11:50:19 字数 245 浏览 12 评论 0原文

是否有可能以某种方式监听从我的机器向 perforce 服务器发出的所有 perforce 命令?

我昨天做了一些谷歌搜索,发现了一个关于 perforce 代理或代理的页面,它可以拦截 perforce 命令并允许您在将它们发送到服务器之前对它们执行您想要的操作...但现在找不到该页面!

我正在尝试调试我们的构建过程(使用 Maven 构建),该过程在运行 maven-release-plugin (准备)时失败。

干杯。

Is it possible to somehow listen to all perforce cammands issued from my machine 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

烟花易冷人易散 2024-09-07 11:50:19

可能是 P4Broker (似乎很难找到官方链接,因此谷歌搜索)。

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

夜清冷一曲。 2024-09-07 11:50:19

感谢您的回复 - 这是我正在寻找的链接,但事实证明这不是我想要的。

最后我修改了我的Windows PATH,这样'p4'就不会直接调用perforce,而是执行一个bat文件:

@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% %*

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% %*
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文