Пример #1
0
    def __init__(self, args, cmd):
        self.args = args
        self.apple_clang_path = subprocess.check_output(["xcrun", "--find", "clang"]).strip()

        xcode_version = util.run_cmd_ignore_fail(["xcodebuild", "-version"])
        apple_clang_version = util.run_cmd_ignore_fail([self.apple_clang_path, "--version"])
        logging.info("Xcode version:\n%s", xcode_version)

        logging.info("clang version:\n%s", apple_clang_version)

        self.cmd = cmd
Пример #2
0
    def __init__(self, args, cmd):
        self.args = args
        self.apple_clang_path = \
            subprocess.check_output(['xcrun', '--find', 'clang']).strip()

        xcode_version = util.run_cmd_ignore_fail(['xcodebuild', '-version'])
        apple_clang_version = util.run_cmd_ignore_fail([self.apple_clang_path,
                                                        '--version'])
        logging.info('Xcode version:\n%s', xcode_version)

        logging.info('clang version:\n%s', apple_clang_version)

        self.cmd = cmd
Пример #3
0
 def __init__(self, args, cmd):
     self.args = args
     # TODO: make the extraction of targets smarter
     self.build_cmd = [cmd[0], '--debug'] + cmd[1:]
     # That contains javac version as well
     version_str = util.run_cmd_ignore_fail([cmd[0], '--version'])
     logging.info("Running with:\n" + version_str)
Пример #4
0
 def __init__(self, args, cmd):
     self.args = args
     # TODO: make the extraction of targets smarter
     self.build_cmd = [cmd[0], '--debug'] + cmd[1:]
     # That contains javac version as well
     version_str = util.run_cmd_ignore_fail([cmd[0], '--version'])
     path = os.path.join(self.args.infer_out, jwlib.FILELISTS)
     if not os.path.exists(path):
         os.mkdir(path)
     logging.info("Running with:\n" + version_str)
Пример #5
0
    def __init__(self, args, cmd):
        from inferlib import config, utils

        self.args = args
        # TODO: make the extraction of targets smarter
        self.build_cmd = [cmd[0], '--debug'] + cmd[1:]
        # That contains javac version as well
        version_str = util.run_cmd_ignore_fail([cmd[0], '--version'])
        path = os.path.join(self.args.infer_out,
                            config.JAVAC_FILELISTS_FILENAME)
        if not os.path.exists(path):
            os.mkdir(path)
        logging.info('Running with:\n' + utils.decode(version_str))
Пример #6
0
    def __init__(self, args, cmd):
        self.args = args
        util.log_java_version()
        logging.info(util.run_cmd_ignore_fail(['buck', '--version']))

        self.cmd = cmd[2:]  # TODO: make the extraction of targets smarter
Пример #7
0
 def __init__(self, args, cmd):
     self.args = args
     self.cmd = cmd
     util.log_java_version()
     logging.info(util.run_cmd_ignore_fail(['buck', '--version']))
Пример #8
0
 def __init__(self, args, cmd):
     self.args = args
     logging.info(util.run_cmd_ignore_fail(['mvn', '-version']))
     # TODO: make the extraction of targets smarter
     self.build_cmd = ['mvn', '-X'] + cmd[1:]
Пример #9
0
Файл: ant.py Проект: ryoon/infer
 def __init__(self, args, cmd):
     self.args = args
     util.log_java_version()
     logging.info(util.run_cmd_ignore_fail(['ant', '-version']))
     # TODO: make the extraction of targets smarter
     self.build_cmd = ['ant', '-verbose'] + cmd[1:]
Пример #10
0
 def __init__(self, args, cmd):
     self.args = args
     logging.info(util.run_cmd_ignore_fail(['mvn', '-version']))
     # TODO: make the extraction of targets smarter
     self.build_cmd = ['mvn', '-X'] + cmd[1:]
Пример #11
0
    def __init__(self, args, cmd):
        self.args = args
        util.log_java_version()
        logging.info(util.run_cmd_ignore_fail(['buck', '--version']))

        self.cmd = cmd[2:]  # TODO: make the extraction of targets smarter
Пример #12
0
 def __init__(self, args, cmd):
     self.args = args
     self.cmd = cmd
     util.log_java_version()
     logging.info(util.run_cmd_ignore_fail(['buck', '--version']))