Commit 7fae8adc authored by Georg Koppen's avatar Georg Koppen Committed by Matthew Finkel
Browse files

Bug 40042: Add option do overwrite timestamp in extension version

parent a935f9e3
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -679,7 +679,10 @@ ext.updateExtensionVersion = { task, extDir ->
        rename { 'manifest.json' }
        into extDir

        def values = ['version': AndroidComponents.VERSION + "." + new Date().format('MMddHHmmss')]
        def systemEnvBuildDate = System.getenv('MOZ_BUILD_DATE')
        def values = ['version': AndroidComponents.VERSION + "." +
                      (systemEnvBuildDate != null ? systemEnvBuildDate :
                      new Date().format('MMddHHmmss'))]
        inputs.properties(values)
        expand(values)
    }