jar tvf输出差异

时间:2013-03-29 20:45:46

标签: list jar

什么会导致jar tvf输出产生以下差异?

bash-3.00$ jar tvf DC_Aging.jar
     0 Wed May 16 14:17:48 CDT 2012 META-INF/
    71 Wed May 16 14:17:48 CDT 2012 META-INF/MANIFEST.MF
     0 Wed May 16 14:17:30 CDT 2012 com/
     0 Wed May 16 14:17:30 CDT 2012 com/perf/
     0 Wed May 16 14:17:30 CDT 2012 com/perf/sess/
     0 Wed May 16 14:17:30 CDT 2012 com/perf/sess/reports/
     0 Wed May 16 14:17:30 CDT 2012 com/perf/sess/reports/
     0 Wed May 16 14:17:30 CDT 2012 com/perf/sess/reports/business/
     0 Wed May 16 14:17:30 CDT 2012 com/perf/sess/reports/business/rules/
     0 Wed May 16 14:17:30 CDT 2012 com/perf/sess/reports/business/rules/ed/
22139 Wed May 16 14:17:36 CDT 2012 com/perf/sess/reports/business/rules/ed/DateComparisons.class

这是在同一个控制台上使用相同java版本生成下面输出的相同jar文件。唯一的区别是jar命令的运行日期。这打破了我们的一个脚本。

bash-3.00$ jar tvf DC_Aging.jar
    25 Fri Mar 29 09:56:14 CDT 2013 META-INF/MANIFEST.MF
25476 Fri Mar 29 09:52:54 CDT 2013 com/perf/sess/reports/business/rules/ed/DateComparisons.class

0 个答案:

没有答案