灰色的灵魂

黑夜给了我黑色的眼睛, 而我注定要用它来寻找美金

灰色的灵魂 header image 2

ant版本兼容性的问题

January 16th, 2008 · No Comments · Tech

折腾了大半天,跑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的。

Tags:

No Comments so far ↓

There are no comments yet...Kick things off by filling out the form below.

Leave a Comment