File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ def jvm_version() -> tuple[int, ...]:
7070 default_jvm_path = jpype .getDefaultJVMPath ()
7171 if not default_jvm_path :
7272 raise RuntimeError ("Cannot glean the default JVM path" )
73- print (f"Default JVM path from JPype: { default_jvm_path } " )
73+ _logger . debug (f"Default JVM path from JPype: { default_jvm_path } " )
7474
7575 # Good ol' macOS! Nothing beats macOS.
7676 jvm_path = default_jvm_path .replace (
Original file line number Diff line number Diff line change 1313_logger = _logging .getLogger (__name__ )
1414
1515# Constraints on the Java installation to be used.
16- _fetch_java : str = "auto "
16+ _fetch_java : str = "always "
1717_java_vendor : str = "zulu-jre"
1818_java_version : str = "11"
1919_maven_url : str = "tgz+https://archive.apache.org/dist/maven/maven-3/3.9.9/binaries/apache-maven-3.9.9-bin.tar.gz" # noqa: E501
@@ -55,10 +55,10 @@ def set_java_constraints(
5555 Set constraints on the version of Java to be used.
5656
5757 :param fetch:
58- If "auto " (default), when a JVM/or maven cannot be located on the system,
59- [`cjdk`](https://github.com/cachedjdk/cjdk) will be used to download
60- a JDK/JRE distribution and set up the JVM.
61- If "always", cjdk will always be used; if "never", cjdk will never be used .
58+ If "always " (default), cjdk will always be used; if "never", cjdk will
59+ never be used. If "auto", when a JVM/or maven cannot be located on the system,
60+ [`cjdk`](https://github.com/cachedjdk/cjdk) will be used to download a
61+ JDK/JRE distribution and set up the JVM .
6262 :param vendor:
6363 The vendor of the JDK/JRE distribution for cjdk to download and cache.
6464 Defaults to "zulu-jre". See the cjdk documentation for details.
Original file line number Diff line number Diff line change 1313assert_that (len (before_version )).is_greater_than_or_equal_to (1 )
1414assert_that (before_version [0 ]).is_greater_than (0 )
1515
16+ scyjava .config .set_java_constraints (fetch = "never" )
1617scyjava .config .enable_headless_mode ()
1718scyjava .start_jvm ()
1819
You can’t perform that action at this time.
0 commit comments