Commit 7b11da27 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 e8a6f8cc
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -678,7 +678,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)
    }