java.py (1677:ccd5c695b739) java.py (1678:a9042510f953)
1import glob
2import os
3import shutil
4import subprocess
5
6import pytest
7from conftest import option
8from unit.applications.proto import TestApplicationProto

--- 50 unchanged lines hidden (view full) ---

59 option.current_dir + '/build/websocket-api-java-*.jar'
60 )
61
62 if not ws_jars:
63 pytest.fail('websocket api jar not found.')
64
65 javac = [
66 'javac',
1import glob
2import os
3import shutil
4import subprocess
5
6import pytest
7from conftest import option
8from unit.applications.proto import TestApplicationProto

--- 50 unchanged lines hidden (view full) ---

59 option.current_dir + '/build/websocket-api-java-*.jar'
60 )
61
62 if not ws_jars:
63 pytest.fail('websocket api jar not found.')
64
65 javac = [
66 'javac',
67 '-target', '8', '-source', '8', '-nowarn',
67 '-encoding', 'utf-8',
68 '-d', classes_path,
69 '-classpath', classpath + ':' + ws_jars[0],
70 ]
71 javac.extend(src)
72
73 try:
74 process = subprocess.Popen(javac, stderr=subprocess.STDOUT)

--- 26 unchanged lines hidden ---
68 '-encoding', 'utf-8',
69 '-d', classes_path,
70 '-classpath', classpath + ':' + ws_jars[0],
71 ]
72 javac.extend(src)
73
74 try:
75 process = subprocess.Popen(javac, stderr=subprocess.STDOUT)

--- 26 unchanged lines hidden ---