Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/chromium/build/android/gyp/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  jetify_jar.py   Sprache: Python

 
#!/usr/bin/env python3
#
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

from __future__ import print_function

import argparse
import os
import subprocess
import sys

from util import build_utils


def _AddArguments(parser):
  """Adds arguments related to jetifying to parser.

  Args:
    parser: ArgumentParser object.
  """
  parser.add_argument(
      '--input-path',
      required=True,
      help='Path to input file(s). Either the classes '
      'directory, or the path to a jar.')
  parser.add_argument(
      '--output-path',
      required=True,
      help='Path to output final file(s) to. Either the '
      'final classes directory, or the directory in '
      'which to place the instrumented/copied jar.')
  parser.add_argument(
      '--jetify-path', required=True, help='Path to jetify bin.')
  parser.add_argument(
      '--jetify-config-path', required=True, help='Path to jetify config file.')


def _RunJetifyCommand(parser):
  args = parser.parse_args()
  cmd = [
      args.jetify_path,
      '-i',
      args.input_path,
      '-o',
      args.output_path,
      # Need to suppress a lot of warning output when jar doesn't have
      # any references rewritten.
      '-l',
      'error'
  ]
  if args.jetify_config_path:
    cmd.extend(['-c', args.jetify_config_path])
  # Must wait for jetify command to complete to prevent race condition.
  env = os.environ.copy()
  env['JAVA_HOME'] = build_utils.JAVA_HOME
  subprocess.check_call(cmd, env=env)


def main():
  parser = argparse.ArgumentParser()
  _AddArguments(parser)
  _RunJetifyCommand(parser)


if __name__ == '__main__':
  sys.exit(main())

Messung V0.5
C=89 H=100 G=94

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.