Retrieve value from text file and replace a string constant in another file with that value using ant script

后端 未结 2 956
暖寄归人
暖寄归人 2020-12-22 05:40

I have a file called versionInfo.txt. This file among other things has the following text: \"Implementation-Version: 7.5.0.1\".

I need to retrieve the version value

2条回答
  •  星月不相逢
    2020-12-22 06:33

    For the second part of your question, retrieve the version info.. : If you need to read the Implementation-Version from the Manifest of a jar you may use a macrodef, f.e. :

    
    
      
      
      
        
          
            
          
            
        
    
    
     
    
    $${foobar} => ${foobar}
    

提交回复
热议问题