01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.test.server.appserver.tomcat5x;
05:
06: import org.codehaus.cargo.container.InstalledLocalContainer;
07: import org.codehaus.cargo.container.configuration.LocalConfiguration;
08: import org.codehaus.cargo.container.property.GeneralPropertySet;
09: import org.codehaus.cargo.container.tomcat.Tomcat5xInstalledLocalContainer;
10:
11: import com.tc.test.server.appserver.cargo.CargoAppServer;
12: import com.tc.test.server.util.AppServerUtil;
13:
14: /**
15: * Tomcat5x AppServer implementation
16: */
17: public final class Tomcat5xAppServer extends CargoAppServer {
18:
19: public Tomcat5xAppServer(Tomcat5xAppServerInstallation installation) {
20: super (installation);
21: }
22:
23: protected String cargoServerKey() {
24: return "tomcat5x";
25: }
26:
27: protected InstalledLocalContainer container(
28: LocalConfiguration config) {
29: return new Tomcat5xInstalledLocalContainer(config);
30: }
31:
32: protected void setConfigProperties(LocalConfiguration config)
33: throws Exception {
34: config.setProperty(GeneralPropertySet.RMI_PORT, Integer
35: .toString(AppServerUtil.getPort()));
36: }
37: }
|