ant版本兼容性的问题
折腾了大半天,跑ADI的时候,到一半就抛错
unknown argument: -cp
-usage ant [options] [target [target2]
google了一把,一般都说啥cmd和bat脚本不对啦,删掉/etc/下的config文件啦,最后发现是,ant1.6.3以下版本不支持-cp参数而只有-lib参数。我在copy项目依赖的ant相关的jar的时候,用1.6.2的jar覆盖了1.6.5版本的,导致cmd和bat脚本都是1.6.5的,而实际用的jar是1.6.2的。
originally posted at medium.com/@xuwenhao/ant%E7%89%88%E6%9C%AC%E5...
| NAV | NEXT ON THE BENCH | DATE | |
|---|---|---|---|
| PREV | 一场虚惊 | 2008 | ← |
| NEXT | links for 2008–01–15 | 2008 | → |
THIS BOARD HAS BEEN TESTED.
IT RUNS.
Engineer wouldn't write that last line.
He'd just put the board on your desk and walk away.
So - that's what this is.
He'd just put the board on your desk and walk away.
So - that's what this is.
XUWENHAO.COM ◆ REV 4.7 ◆ MADE IN SHANGHAI ◆ 2026