嶶風 2016-01-28 16:46 采纳率: 0%
浏览 2672

linux 中使用beyond compare 4 返回1 binary same 怎么解决

使用java 方法调用linux命令 bcompare -silennt .... 执行后的返回结果为1 不知道是什么原因。
java 方法:
//

public static int callShell(String[] shellString) {
try {
Process process = Runtime.getRuntime().exec(shellString);
int exitValue = process.waitFor();
System.out.println("exitValue"+exitValue);
if (0 != exitValue) {
throw new Exception("call shell failed. error code is :"
+ exitValue);
} else {
return 0;
}
} catch (Throwable e) {
System.out.println("call shell failed. " + e);
}
return 0;
}

String[] shellString = new String[] { 
                "/bin/sh"                                   
                ,"bcompare"                  
                ,"-silent"                   
                ,"@" + execJSPath            
                ,oldfilefullpath                
                ,newfilefullpath                 
                ,newfileName }; 

        int re = callShell(shellString);



程序执行后         exitValue 打印的值一直为1  不知问题出在哪里。
compare 的帮助文档给出的说明是
Return codes

Code Meaning
0 Success
1 Binary same
2 Rules-based same
11 Binary differences
12 Similar
13 Rules-based differences
14 Conflicts detected
100 Unknown error
101 Conflicts detected, merge output not written
102 BComp.exe unable to wait until BCompare.exe finishes
103 BComp.exe cannot find BCompare.exe
104 Trial period expired
105 Error loading script file
106 Script syntax error
107 Script failed to load folders or files

compare4在线的帮助文档 使用搜索功能 搜索【Command Line Reference】
http://www.scootersoftware.com/v4help/

1 Binary same 有了这个说明 可还是不知道怎么解决 请大神们有经验的指点一下!!!

  • 写回答

3条回答

  • devmiao 2016-01-28 22:43
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 stm32流水灯+呼吸灯+外部中断按键
  • ¥15 将二维数组,按照假设的规定,如0/1/0 == "4",把对应列位置写成一个字符并打印输出该字符
  • ¥15 NX MCD仿真与博途通讯不了啥情况
  • ¥15 win11家庭中文版安装docker遇到Hyper-V启用失败解决办法整理
  • ¥15 gradio的web端页面格式不对的问题
  • ¥15 求大家看看Nonce如何配置
  • ¥15 Matlab怎么求解含参的二重积分?
  • ¥15 苹果手机突然连不上wifi了?
  • ¥15 cgictest.cgi文件无法访问
  • ¥20 删除和修改功能无法调用