Ant conditional if within a macrodef

后端 未结 2 1523
醉话见心
醉话见心 2021-01-11 14:19

Within ant, I have a macrodef.

Assuming I have to use this macrodef, and there is a item inside said macrodef that I want to run if the property special.proper

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-11 14:46

    This is only possible if the ANT "thingHereThatDependsOn" task supports an "if" attribute.

    As stated above, conditional execution in ANT, normally, only applies to targets.

    
       ..
       ..
    
    
    
       ..
       ..
    
    
    
    

提交回复
热议问题