Unverified Commit bba90e7a authored by Georg Koppen's avatar Georg Koppen Committed by boklm
Browse files

Bug 40013: Add option do overwrite timestamp in extension version

parent 4bfbb730
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -106,7 +106,13 @@ subprojects {
            rename { 'manifest.json' }
            into extDir

            def values = ['version': rootProject.ext.config.componentsVersion + "." + new Date().format('MMddHHmmss')]
            def systemEnvBuildDate = System.getenv('MOZ_BUILD_DATE')
            // MOZ_BUILD_DATE is in the YYYYMMDDHHMMSS format. Thus, we only use a
            // substring of it if it is available.
            def values = ['version': rootProject.ext.config.componentsVersion + "." +
                          (systemEnvBuildDate != null ?
                           systemEnvBuildDate.substring(4) :
                           new Date().format('MMddHHmmss'))]
            inputs.properties(values)
            expand(values)
        }