Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 ant-contrib 在 Linux 上运行 ant 脚本。我使用 ant 的 -lib 参数指定了 jar,但似乎没有检测到它。
这是我收到的警告:[taskdef] 无法从资源 net/sf/antcontrib/antcontrib.properties 加载定义。找不到。
我运行的命令是: ant -lib ./lib/ant-contrib.jar -f build-master.xml 我也尝试指定绝对路径,但没有成功。
最后发现是蚂蚁本身的问题。我使用的环境安装了 ant 1.9.2。我一升级到 1.9.6,lib 参数就开始起作用了!