security/generate_certdata.py
author Jim Chen <nchen@mozilla.com>
Tue, 01 May 2018 00:22:54 -0400
changeset 416494 1d986592d690a79f122361b5cb1d8b91e08877c0
parent 383806 cb773c661e0ca0bf297e977343076bef34411523
child 421612 f9a66e05d90ea6e12616e97b1cc52f9727c4ddc7
permissions -rw-r--r--
Bug 1457255 - 3. Turn Java warnings into errors; r=nalexander Turn Java warnings into errors except for the deprecation and serial warnings. This is done for all Gradle projects except the thirdparty project.

#!/usr/bin/env python
#
# This exists to paper over differences between gyp's `action` definitions
# and moz.build `GENERATED_FILES` semantics.

import buildconfig
import os
import subprocess

def main(output, *inputs):
    env=dict(os.environ)
    env['PERL'] = str(buildconfig.substs['PERL'])
    output.write(subprocess.check_output([buildconfig.substs['PYTHON'],
                 inputs[0], inputs[2]], env=env))
    return None