Skip to end of metadata
Go to start of metadata

Definition

How to pass system properties that will be available to the container while executing

Explanations

It is sometime useful to pass system properties to the container that is executing. These properties are then available to the code executing in the container.

Example using the Java API

Starting Tomcat 3.x with some System properties set in the container JVM:

Example using the Ant task

Starting Tomcat 3.x with some System properties set in the container JVM:

Loading system properties from a file

Icon

It is also possible to load the system properties from a file - simply use the systemPropertiesFile attribute of the cargo XML element.

Example using the Maven2 plugin

Starting Tomcat 3.x with some System properties set in the container JVM:

  • No labels