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 构建文件:
<taskdef name="for" classname="net.sf.antcontrib.logic.For" />
这条线上的构建失败了,说:
classname attribute of taskdef element is undefined
我认为这意味着 Ant 找不到类文件。
Ant 在哪里寻找这个文件?我在哪里可以找到它以将其添加到位置 X?
Q1: ant在哪里找这个文件?
将这些插入到您的build.xml文件中:
build.xml
<echo message="ant home is: ${ant.home}"></echo> <echo message="user home is: ${user.home}"></echo>
(来源)
Q2:我在哪里可以找到它以将其添加到位置 X。
在http://www.findjar.com/中输入类名