0
如果我在phing執行這個效果很好:Phing失敗裏面的if語句
<copy todir="${dir.tmp}/${edition}/pdir">
<fileset refid="${edition}-p" />
<filterchain refid="${edition}-filter" />
</copy>
如果我執行它像下面($ {版}被設置爲「C」)失敗與以下錯誤:
Execution of target "build" failed for the following reason: [wrapped: You must not specify more than one attribute when using refid]
<if>
<or>
<equals arg1="${edition}" arg2="a" />
<equals arg1="${edition}" arg2="b" />
<equals arg1="${edition}" arg2="c" />
</or>
<then>
<copy todir="${dir.tmp}/${edition}/pdir">
<fileset refid="${edition}-p" />
<filterchain refid="${edition}-filter" />
</copy>
</then>
</if>
其相同的語句像上面,只有一個ref屬性。怎麼了?