1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* Copyright © 2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// ----------------------------------------------------------------
pub const JAVA_HOME: &str = "JAVA_HOME";
pub const JAVA_HOME_BIN: &str = "$JAVA_HOME/bin"; // Unix format
pub const JAVA_HOME_BIN_WINDOWS: &str = r"%JAVA_HOME%\bin"; // Windows format
// ----------------------------------------------------------------
pub const JVR_CMD_NAME: &str = "jvr";
pub const JVR_HOME_DIR_NAME: &str = ".jvr";
pub const JVR_CONFIGURE_FILE_NAME: &str = "config.json";
pub const JVR_BEGIN: &str = "# >>> jvr managed >>>";
pub const JVR_END: &str = "# <<< jvr managed <<<";
// ----------------------------------------------------------------
pub const JVR_OS_WINDOWS_ENVIRONMENT_USER_SUB_KEY: &str = "Environment";
pub const JVR_OS_WINDOWS_ENVIRONMENT_SYSTEM_SUB_KEY: &str =
r"SYSTEM\CurrentControlSet\Control\Session Manager\Environment";
// ----------------------------------------------------------------
pub const OS_WINDOWS: &str = "windows";
pub const OS_LINUX: &str = "linux";
pub const OS_MACOS: &str = "macos";
// ----------------------------------------------------------------
pub const PATH_ENVIRONMENT_VARIABLE_WINDOWS: &str = "Path";
pub const PATH_ENVIRONMENT_VARIABLE_UNIX: &str = "PATH";