MCPcopy Create free account
hub / github.com/SySS-Research/hallucinate / java_attach

Function java_attach

hallucinate/java.py:99–106  ·  view source on GitHub ↗
(pid, agentcfg, java='java', agentjar=None)

Source from the content-addressed store, hash-verified

97
98
99def java_attach(pid, agentcfg, java='java', agentjar=None):
100 if agentjar is None:
101 agentjar = os.path.dirname(os.path.realpath(__file__)) + os.sep + 'hallucinate-java-all.jar'
102 subprocess.run([
103 java, '-cp',
104 agentjar,
105 'gs.sy.m8.hallucinate.Launcher', str(pid), agentcfg
106 ], stdin=subprocess.DEVNULL, stdout=subprocess.DEVNULL)
107
108
109_javaserver = None

Callers 2

java_attach_runtimeFunction · 0.85
java.pyFile · 0.85

Calls 1

runMethod · 0.45

Tested by

no test coverage detected