嶶風 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 用visual studi code完成html页面
  • ¥15 聚类分析或者python进行数据分析
  • ¥15 逻辑谓词和消解原理的运用
  • ¥15 三菱伺服电机按启动按钮有使能但不动作
  • ¥15 js,页面2返回页面1时定位进入的设备
  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
  • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?