How to over-write the property in Ant?

后端 未结 8 1280
旧时难觅i
旧时难觅i 2020-12-05 13:21

Is there a way to re-assign the value for the Ant property task? Or is there another task available for that purpose?

8条回答
  •  误落风尘
    2020-12-05 14:04

    You can't change the value of a property in Ant.

    If you have some Ant tasks you want to run repeatedly passing in different values I recommend the macrodef task as you can run the same macro repeatedly passing in different attributes.

    For example:

    
      
      
        
          
            
          
        
      
    
    
    
    
    

    Note that ${property} is used to reference properties and @{attribute} is used to reference the attributes passed to the task.

提交回复
热议问题