2013-03-09 65 views
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属性。怎么了?

回答