Ant: target


if/unless 属性

 
    
  

如果if值为一个属性,那么这个属性not.leaf为true、yes等"true-like"值时才运行这个target

1.8.0以后,if值可以不是属性,只要他为true就运行这个target,如:


    


    


可运行  ant -Dfile.exists=false lots-of-stuff 来只运行 other-unconditional-stuff 而避免运行 use-file

对于unless,和if相反,值为false时才运行target


你可能感兴趣的:(工具)