我使用巡航控制框架每晚構建。螞蟻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