蚂蚁属性问题
我正在使用 Cruisecontrol 框架进行夜间构建。
目前我尝试将一些文件夹设置为只读=“false”,
2011-05-18 11:40:17,089 [Thread-23] WARN ScriptRunner - C:\builds\nightly_build.xml:30: Problem: failed to create task or type attrib
2011-05-18 11:40:17,089 [Thread-23] WARN ScriptRunner - Cause: the class org.apache.tools.ant.taskdefs.optional.windows.Attrib was not found.
2011-05-18 11:40:17,089 [Thread-23] WARN ScriptRunner - This looks like one of Ant's optional components.
2011-05-18 11:40:17,105 [Thread-23] WARN ScriptRunner - Action: Check that the appropriate optional JAR exists in
2011-05-18 11:40:17,105 [Thread-23] WARN ScriptRunner - -C:\builds\lib
2011-05-18 11:40:17,105 [Thread-23] WARN ScriptRunner - -C:\Documents and Settings\admin\.ant\lib
2011-05-18 11:40:17,105 [Thread-23] WARN ScriptRunner - -a directory added on the command line with the -lib argument
2011-05-18 11:40:17,105 [Thread-23] WARN ScriptRunner -
2011-05-18 11:40:17,105 [Thread-23] WARN ScriptRunner - Do not panic, this is a common problem.
2011-05-18 11:40:17,105 [Thread-23] WARN ScriptRunner - The commonest cause is a missing JAR.
2011-05-18 11:40:17,105 [Thread-23] WARN ScriptRunner -
2011-05-18 11:40:17,105 [Thread-23] WARN ScriptRunner - This is not a bug; it is a configuration problem
错误如上所示。
当我使用
时会发生这种情况:
<attrib readonly="false">
<dirset dir="C:/Work/6.70_Extensions/NightlyBuild" />
</attrib>
我该如何解决这个问题?我如何找到我拥有的 ANT 版本?
i am using cruisecontrol framework for nightly build.
currently i tried to set some folders to readonly = "false"
2011-05-18 11:40:17,089 [Thread-23] WARN ScriptRunner - C:\builds\nightly_build.xml:30: Problem: failed to create task or type attrib
2011-05-18 11:40:17,089 [Thread-23] WARN ScriptRunner - Cause: the class org.apache.tools.ant.taskdefs.optional.windows.Attrib was not found.
2011-05-18 11:40:17,089 [Thread-23] WARN ScriptRunner - This looks like one of Ant's optional components.
2011-05-18 11:40:17,105 [Thread-23] WARN ScriptRunner - Action: Check that the appropriate optional JAR exists in
2011-05-18 11:40:17,105 [Thread-23] WARN ScriptRunner - -C:\builds\lib
2011-05-18 11:40:17,105 [Thread-23] WARN ScriptRunner - -C:\Documents and Settings\admin\.ant\lib
2011-05-18 11:40:17,105 [Thread-23] WARN ScriptRunner - -a directory added on the command line with the -lib argument
2011-05-18 11:40:17,105 [Thread-23] WARN ScriptRunner -
2011-05-18 11:40:17,105 [Thread-23] WARN ScriptRunner - Do not panic, this is a common problem.
2011-05-18 11:40:17,105 [Thread-23] WARN ScriptRunner - The commonest cause is a missing JAR.
2011-05-18 11:40:17,105 [Thread-23] WARN ScriptRunner -
2011-05-18 11:40:17,105 [Thread-23] WARN ScriptRunner - This is not a bug; it is a configuration problem
the errors are shown above.
This occurs when i use <attrib>
:
<attrib readonly="false">
<dirset dir="C:/Work/6.70_Extensions/NightlyBuild" />
</attrib>
how do i solve this problem? and how do i find out the version of ANT that i have?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
$ANT_HOME/lib 中有 ant-nodeps.jar 吗?这是包含 Attrib 类的 jar,因此它需要位于您的 Ant 类路径中。
Do you have ant-nodeps.jar in $ANT_HOME/lib? That is the jar which contains the Attrib class, so it needs to be on your Ant classpath.
attrib 任务随 Ant 1.6 一起提供 - 请参阅 Ant 手册
使用内置属性 ant.version 检查您的 Ant 版本:
The attrib task came with Ant 1.6 - see Ant Manual
Check your Ant Version with builtin Property ant.version: