Ant conditional if within a macrodef

后端 未结 2 1631
醉话见心
醉话见心 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 15:06

    In Ant 1.9.1 and higher, there is now a new implementation of if and unless attributes. This might be what you're thinking of.

    First, you need to put them into your namespace. Add them to your header:

    
    

    Now, you can add them to almost any Ant task or sub entity:

    
    
    
    
        
    
    
    
    
        
    
    
    
        
                                                            
提交回复
热议问题