...
| Code Block |
|---|
InstalledLocalContainer container = new Tomcat3xInstalledLocalContainer(
new TomcatStandaloneLocalConfiguration(new File("target/tomcat3x")));
container.setHome(new File("c:/apps/jakarta-tomcat-3.3.2"));
Map props = new HashMap();
props.put("mypropery", "myvalue");
container.setSystemProperties(props);
container.start();
|
Example using the Ant
...
task
Starting Tomcat 3.x with some System properties set in the container JVM:
| Code Block |
|---|
|
<cargo containerId="tomcat3x" home="c:/apps/jakarta-tomcat-3.3.2" action="start">
<sysproperty key="myproperty" value="myvalue"/>
</cargo>
|
Example using the Maven2 plugin
Starting Tomcat 3.x with some System properties set in the container JVM:
| Code Block |
|---|
|
<container>
[...]
<systemProperties>
<myproperty>myvalue</myproperty>
</systemProperties>
</container>
|