1.4. Customizing environment variables

There are 2 scripts that involve setting environment variables. They are called the default script and the customization script in this document.

In Tomcat bundle and for Linux, they are:

Their Windows versions are $PLATFORM_TOMCAT_HOME/bin/setenv.bat and $PLATFORM_TOMCAT_HOME/bin/setenv-customize.bat. Except their syntax, .sh and .bat versions are the same.

In JBoss, the Linux scripts are:

The Windows versions are $PLATFORM_JBOSS_HOME/bin/standalone.conf.bat and $PLATFORM_JBOSS_HOME/bin/standalone-customize.conf.bat.

Usage of the 2 scripts

Starting your customization

  1. Rename a file in bin folder, as below:

    • For Tomcat in Linux: rename setenv-customize.sample.sh to setenv-customize.sh.

    • For Tomcat in Windows: rename setenv-customize.sample.bat to setenv-customize.bat.

    • For JBoss in Linux: rename standalone-customize.sample.conf to standalone-customize.conf.

    • For JBoss in Windows: rename standalone-customize.sample.conf.bat to standalone-customize.conf.bat.

  2. Find the variable that you want to customize, uncomment it (by removing '#' in the .sh file or "REM" in the .bat file) and edit its value.

Use # to comment out a line in .sh, and REM in .bat. To comment out a block:

In next sections, you will walk through Basic Customization and Advanced Customization.

Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus