通过 p4java api 同步

发布于 2024-08-22 19:26:51 字数 268 浏览 4 评论 0原文

应该在传递到 perforce java API 中的 IClient.sync 的 FileSpec 对象中设置哪些字段?

我已经设置:

  1. 传递给构造函数的路径名传递给本地工作区的绝对路径/...
  2. setClient(myIClient)
  3. 将操作设置为 FileAction.SYNC

不会引发异常,但结果中会返回一个 IFileSpec,并且它会抱怨客户端“unknownclient”是未知的(毫不奇怪)。

What fields should be set in the FileSpec object passed into IClient.sync in the perforce java API?

I've set:

  1. The pathname passed to the constructor to the abs path/... of the local workspace
  2. setClient(myIClient)
  3. the action to FileAction.SYNC

No exception is thrown, but one IFileSpec comes back in the result, and it complains that the client 'unknownclient' is (not surprisingly) unknown.

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

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

发布评论

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

评论(1

一场春暖 2024-08-29 19:26:51

听起来您好像忘了打电话:

    IClient client = server.getClient(clientName);
    server.setCurrentClient(client);

Sounds like you forgot to call:

    IClient client = server.getClient(clientName);
    server.setCurrentClient(client);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文