嶶風 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 使用C#,asp.net读取Excel文件并保存到Oracle数据库
  • ¥15 C# datagridview 单元格显示进度及值
  • ¥15 thinkphp6配合social login单点登录问题
  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配