Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Create buck_tool.py #2722

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions programs/buck_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ def _run_without_nailgun(self, java_path, argv, env, post_run_files):
"""
Run the command by directly invoking `java` (rather than by sending a command via nailgun)
"""
command = ["buck"]
command = ["java"]
extra_default_options = [
"-Dbuck.is_buckd=false",
"-Djava.io.tmpdir={0}".format(self._tmp_dir),
Expand All @@ -635,7 +635,7 @@ def _run_without_nailgun(self, java_path, argv, env, post_run_files):
command.extend(self._add_args_from_env(argv, post_run_files))
now = int(round(time.time() * 1000))
env["BUCK_PYTHON_SPACE_INIT_TIME"] = str(now - self._init_timestamp)
with Tracing("buck", args={"command": command}):
with Tracing("java", args={"command": command}):
subprocess_cwd = self._buck_project.root
logging.debug(
"Spawning Buck directly without Nailgun:\n cwd={cwd}\n executable={exe_path}\n command={cmd}\n env={env}".format(
Expand Down