-
Notifications
You must be signed in to change notification settings - Fork 0
/
defaults.ts
48 lines (37 loc) · 1007 Bytes
/
defaults.ts
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
48
import { fileURLToPath } from "url";
import path from "path";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
/*
* Java Options
*/
export const JAVA_ROOTPATH = __dirname;
export const JAVA_CLASSPATH = [
path.join(JAVA_ROOTPATH, "java", "bin"),
path.join(JAVA_ROOTPATH, "java", "lib"),
path.join(JAVA_ROOTPATH, "java", "lib", "dsJQuery", "dsJQuery-20210212.jar"),
path.join(JAVA_ROOTPATH, "java", "lib", "jdom", "jdom-1.1.3.jar"),
path.join(JAVA_ROOTPATH, "java", "lib", "json", "json-20201115.jar")];
export const JAVA_MINIMUMJAVAVERSION = 12;
/*
* Java Setup
*/
export const JAVA_CONFIG = {
dsapiPath: [
path.join(JAVA_ROOTPATH, "dsapi.jar"),
path.join(JAVA_ROOTPATH, "java", "dsapi.jar"),
path.join(JAVA_ROOTPATH, "java", "lib", "dsapi", "dsapi.jar")
]
};
/*
* Server Setup
*/
export const SERVER_CONFIG = {
serverPort: 1099
};
/*
* Session Setup
*/
export const SESSION_CONFIG = {
userDomain: "DocuShare"
};