Build numbers: major.minor.revision

后端 未结 7 2023
一向
一向 2020-12-22 17:47

How would you write a build.xml file, using neither custom code nor external dependencies (such as a shell script), that:

  • Generates a build number
7条回答
  •  被撕碎了的回忆
    2020-12-22 18:26

    Build Process

    1. build_info.properties will be created during build in your project folder You could write all information about your build in this file.
      • Like build number, major and minor numbers of release, timestamp, and revision number.
    2. Your build script can modify these values how ever your want
    3. After the build was successfull commit the file 'build_info.properties' back to the repository

    During Development

    After first build the file build_info.properties will be placed in the repository. You can change and commit any number (major, minor, build numbers) by your self when ever you want, or increase it automatically during build like build.number in the example below.

    svnant Example

    Using svnant 1.3.0:

    
        Checking out revision ${param_SubProjectSvnREV} of project: ${param_SubProjectSvnName}
        
            
            
        
        
            
            
            
            
        
    
    
    
        
        
        
         
    
    

提交回复
热议问题