0

什么会导致 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
4

0 回答 0