蚂蚁属性问题

发布于 2024-11-08 02:45:59 字数 1621 浏览 3 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

在梵高的星空下 2024-11-15 02:46:00

$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.

沉鱼一梦 2024-11-15 02:45:59

attrib 任务随 Ant 1.6 一起提供 - 请参阅 Ant 手册
使用内置属性 ant.version 检查您的 Ant 版本:

<echo>${ant.version}</echo>

The attrib task came with Ant 1.6 - see Ant Manual
Check your Ant Version with builtin Property ant.version:

<echo>${ant.version}</echo>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文