簡體   English   中英

在Unix上將P4JAVA與JDK6一起使用:Client.sync()忽略執行位

[英]Using P4JAVA with JDK6 on Unix: Client.sync() ignores the execute bit

  1. 在Solaris上將p4java-2011.1.297684與Java 6結合使用
  2. 在給定文件上運行p4 sync -f將同步帶有正確設置的執行位的文件。
  3. 調用client.sync(List,true,false,false,false)不會設置執行位。
  4. 我還嘗試實現自己的ISystemFileCommandsHelper並將其注冊(與默認設置相對):

    ServerFactory.setRpcFileSystemHelper(new MySystemFileCommandsHelper());

    ...

    公共類MySystemFileCommandsHelper實現ISystemFileCommandsHelper {

    ...

     public boolean setExecutable(String file, boolean executable, boolean ownerOnly) { File f = new File(file); System.out.println("Calling... 2"); return f.setExecutable(executable, ownerOnly); } 

    ...}

但也沒有運氣; 我也看不到任何記錄或打印的內容。

是否存在控制SystemFileCommandsHelper使用的設置或屬性?

提前致謝。

有問題的文件的Perforce文件類型是什么? 我認為它對於text + xbinary + x文件應該正確運行,但是似乎存在一個錯誤,其中unicode文件(文件類型unicode + x )沒有設置可執行位。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM