How to conditionally set arg value of exec task?

后端 未结 2 1576
后悔当初
后悔当初 2020-12-19 02:42

I\'ve got an ant build script which I should modify. Specifically I should make a subversion checkout conditional: currently only the trunk gets checked out, the new version

2条回答
  •  情歌与酒
    2020-12-19 03:15

    When using Ant >= 1.9.3 it's a piece of cake with the new if/unless feature introduced with Ant 1.9.1 (but you should at least use Ant 1.9.3 because of bugs in Ant 1.9.1, see this answer for details)

    Don't forget the namespaces to activate that feature, f.e. :

    
    
     
    
     foobar blank !
     foobar not blank !
    
    
    

    in your case something like :

    
     
       
       
       
       
       
       
       
       
       
       
     
    
    

提交回复
热议问题