How to pull out a substring in Ant

前端 未结 6 1131
隐瞒了意图╮
隐瞒了意图╮ 2020-12-03 16:31

Is there a way to pull a substring from an Ant property and place that substring into it\'s own property?

6条回答
  •  盖世英雄少女心
    2020-12-03 17:19

    Since I prefer to use vanilla Ant, I use a temporary file. Works everywhere and you can leverage replaceregex to get rid of the part of the string you don't want. Example for munging Git messages:

        
            
            
            
        
        
            
               
               
                  
               
               
            
        
    

提交回复
热议问题