-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add sample setenv.bat for tomcat on windows to docs
- Loading branch information
Hailey Johnson
authored and
haileyajohnson
committed
Feb 29, 2024
1 parent
7f5f22e
commit 44a69a3
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
docs/userguide/src/site/files/tds_tutorial/getting_started/setenv.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
@echo off | ||
rem ENVARS for Tomcat | ||
set CATALINA_HOME=\usr\local\tomcat | ||
set CATALINA_BASE=\usr\local\tomcat | ||
set JAVA_HOME=\usr\local\java | ||
|
||
rem TDS specific ENVARS | ||
rem Define where the TDS content directory will live | ||
rem THIS IS CRITICAL and there is NO DEFAULT - the TDS will not start without this. | ||
set CONTENT_ROOT=data\content | ||
set CONTENT_ROOT_PATH=-Dtds.content.root.path="%CONTENT_ROOT%" | ||
|
||
rem Set java prefs related variables (used by the wms service, for example) | ||
set JAVA_PREFS_ROOTS=-Djava.util.prefs.systemRoot="%CONTENT_ROOT%\thredds\javaUtilPrefs" -Djava.util.prefs.userRoot="%CONTENT_ROOT%\thredds\javaUtilPrefs" | ||
|
||
rem Some commonly used JAVA_OPTS settings: | ||
set NORMAL=-Xmx4096m -Xms512m | ||
set HEAP_DUMP=-XX:+HeapDumpOnOutOfMemoryError | ||
set HEADLESS=-Djava.awt.headless=true | ||
|
||
rem Standard setup. | ||
set JAVA_OPTS=%CONTENT_ROOT_PATH% %JAVA_PREFS_ROOTS% %NORMAL% %HEAP_DUMP% %HEADLESS% | ||
|
||
rem Uncomment the following line if you want to display the JAVA_OPTS | ||
rem echo %JAVA_OPTS% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters