File tree Expand file tree Collapse file tree
java/ql/integration-tests/java
buildless-maven-existing-settings-xml Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import os
22import os .path
33
4- def test (codeql , java , check_diagnostics_java ):
4+ def test (codeql , java , check_diagnostics_java , tmp_path ):
55 codeql .database .create (build_mode = "none" ,
66 _env = {
7- "_JAVA_OPTIONS" : "-Duser.home=" + os .path .join (os .getcwd (), "home-dir-with-maven-settings" )
7+ "_JAVA_OPTIONS" : " " .join ([
8+ "-Duser.home=" + os .path .join (os .getcwd (), "home-dir-with-maven-settings" ),
9+ "-Dmaven.repo.local=" + str (tmp_path / "maven-repository" )
10+ ])
811 }
912 )
Original file line number Diff line number Diff line change 11import os
22import os .path
33
4- def test (codeql , java , check_diagnostics_java ):
4+ def test (codeql , java , check_diagnostics_java , tmp_path ):
55 codeql .database .create (build_mode = "none" ,
66 _env = {
7- "_JAVA_OPTIONS" : "-Duser.home=" + os .path .join (os .getcwd (), "empty-home" ),
7+ "_JAVA_OPTIONS" : " " .join ([
8+ "-Duser.home=" + os .path .join (os .getcwd (), "empty-home" ),
9+ "-Dmaven.repo.local=" + str (tmp_path / "maven-repository" )
10+ ]),
811 "LGTM_INDEX_MAVEN_SETTINGS_FILE" : os .path .join (os .path .dirname (os .path .realpath (__file__ )), "settings.xml" )
912 }
1013 )
Original file line number Diff line number Diff line change 11import os
22import os .path
33
4- def test (codeql , java , check_diagnostics_java ):
4+ def test (codeql , java , check_diagnostics_java , tmp_path ):
55 codeql .database .create (build_mode = "none" ,
66 _env = {
7- "_JAVA_OPTIONS" : "-Duser.home=" + os .path .join (os .getcwd (), "empty-home" )
7+ "_JAVA_OPTIONS" : " " .join ([
8+ "-Duser.home=" + os .path .join (os .getcwd (), "empty-home" ),
9+ "-Dmaven.repo.local=" + str (tmp_path / "maven-repository" )
10+ ])
811 }
912 )
You can’t perform that action at this time.
0 commit comments