我使用巡航控制框架每晚构建。蚂蚁attrib问题
目前我试图设置一些文件夹为只读=“假”
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>
:
<attrib readonly="false">
<dirset dir="C:/Work/6.70_Extensions/NightlyBuild" />
</attrib>
我如何解决这个问题?以及如何找出我拥有的ANT版本?
嗨它说蚂蚁1.7.0,但为什么我不能'attrib'? – jeremychan 2011-05-18 06:39:21
当使用巡航控制附带的ant版本时,如果您必须使用1.7.0版本,请使用最新的Ant版本1.8.2 替换Ant -diagnostics并获取您的ant安装的详细信息 – Rebse 2011-05-18 08:38:26
@rebse我拥有非常奇怪的情况。当我做诊断时,我得到'“蚂蚁”不被识别为内部或外部命令' – jeremychan 2011-05-18 08:45:14