adding comment in .properties files

前端 未结 3 1232
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-02 07:01

By using following block of code in build.xml file


   

        
3条回答
  •  渐次进展
    2021-02-02 07:50

    The property file task is for editing properties files. It contains all sorts of nice features that allow you to modify entries. For example:

    
        
    
    

    I've incremented my build_number by one. I have no idea what the value was, but it's now one greater than what it was before.

    • Use the task to build a property file instead of . You can easily layout the content and then use to edit that content later on.

    Example:

    
    # Default Configuration
    source.dir=1
    dir.publish=1
    # Source Configuration
    dir.publish.html=1
    
    
    • Create separate properties files for each section. You're allowed a comment header for each type. Then, use to batch them together into one single file:

    Example:

    
        
        
    
    
    
        
    
    
        
            
            
        
    
    
    
        
             
            
        
          
    

提交回复
热议问题