ant-contrib - if/then/else task

后端 未结 5 959
暗喜
暗喜 2020-12-28 19:40

I am using ant, and I have a problem with if/then/else task, (ant-contrib-1.0b3.jar). I am running something that can be simplified with build.xml below.

I am ex

5条回答
  •  攒了一身酷
    2020-12-28 20:25

    It is possible to re-assign the value of a property using the ant-contrib 'propertycopy'. This is an alternative to using ant-contrib Variables. This way the property "giv" can be overwritten.

    
      
      
        
        
        
        
          
          
        
      
      
    
    

    Be aware this assumes the property tempName is not already set to a value other than 'John'.

提交回复
热议问题