Skip to content

Commit 536fff5

Browse files
committed
Add standard Linux Windows macOS preferred installation paths
1 parent c6f3d72 commit 536fff5

1 file changed

Lines changed: 77 additions & 0 deletions

File tree

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "JWSTF Preferred Installation Paths",
4+
"version": 1,
5+
"principle": "Prefer operating-system conventions; keep application source separate from installed runtime state.",
6+
"profiles": {
7+
"linux": {
8+
"source": "/usr/local/src/jwstf",
9+
"application": "/opt/jwstf",
10+
"tomcat": "/opt/tomcat",
11+
"apache_document_root": "/var/www/html/jwstf",
12+
"apache_config": "/etc/apache2",
13+
"systemd": "/etc/systemd/system",
14+
"logs": "/var/log/jwstf",
15+
"state": "/var/lib/jwstf",
16+
"config": "/etc/jwstf"
17+
},
18+
"linux_distribution_managed": {
19+
"tomcat_preferred": "/var/lib/tomcat10",
20+
"tomcat_config": "/etc/tomcat10",
21+
"apache_document_root": "/var/www/html",
22+
"note": "When Tomcat is installed from the distribution package, retain the distribution's /etc, /var/lib, and service layout instead of replacing it with a hand-installed /opt tree."
23+
},
24+
"windows": {
25+
"machine_application": "C:\\Program Files\\JWSTF",
26+
"machine_data": "C:\\ProgramData\\JWSTF",
27+
"machine_config": "C:\\ProgramData\\JWSTF\\config",
28+
"logs": "C:\\ProgramData\\JWSTF\\logs",
29+
"user_application": "%LOCALAPPDATA%\\JWSTF",
30+
"user_data": "%APPDATA%\\JWSTF",
31+
"installer_cache": "%ProgramData%\\JWSTF\\installer-cache",
32+
"note": "Use Program Files for installed binaries and ProgramData for machine-wide mutable data; do not place mutable service data inside Program Files."
33+
},
34+
"macos": {
35+
"machine_application": "/Applications/JWSTF.app",
36+
"machine_support": "/Library/Application Support/JWSTF",
37+
"machine_config": "/Library/Application Support/JWSTF/config",
38+
"logs": "/Library/Logs/JWSTF",
39+
"user_application": "~/Applications/JWSTF.app",
40+
"user_support": "~/Library/Application Support/JWSTF",
41+
"user_preferences": "~/Library/Preferences",
42+
"note": "Prefer an app bundle for GUI applications and Application Support/Library locations for mutable data."
43+
},
44+
"user": {
45+
"meaning": "professional user / user-scoped installation",
46+
"linux": "~/.local/share/jwstf",
47+
"windows": "%LOCALAPPDATA%\\JWSTF",
48+
"macos": "~/Library/Application Support/JWSTF"
49+
},
50+
"deck": {
51+
"meaning": "enterprise deployment / centrally managed environment",
52+
"linux": "/opt/jwstf",
53+
"windows": "C:\\Program Files\\JWSTF",
54+
"macos": "/Library/Application Support/JWSTF"
55+
}
56+
},
57+
"tomcat": {
58+
"linux_manual": "/opt/tomcat",
59+
"linux_distribution": "/var/lib/tomcat10",
60+
"rule": "Do not mix manual /opt Tomcat files with distribution-managed Tomcat files."
61+
},
62+
"apache": {
63+
"linux_debian_ubuntu": {
64+
"binary": "/usr/sbin/apache2",
65+
"config": "/etc/apache2",
66+
"document_root": "/var/www/html",
67+
"logs": "/var/log/apache2"
68+
},
69+
"windows": {
70+
"preferred": "C:\\Apache24",
71+
"note": "Use an explicitly provisioned Apache installation rather than assuming a Windows system path."
72+
},
73+
"macos": {
74+
"system_note": "Do not assume a system Apache installation; use the chosen package manager or application bundle and preserve its managed paths."
75+
}
76+
}
77+
}

0 commit comments

Comments
 (0)