1 4 package com.tc.test.server.appserver.tomcat5x; 5 6 import org.codehaus.cargo.container.InstalledLocalContainer; 7 import org.codehaus.cargo.container.configuration.LocalConfiguration; 8 import org.codehaus.cargo.container.property.GeneralPropertySet; 9 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 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(LocalConfiguration config) { 28 return new Tomcat5xInstalledLocalContainer(config); 29 } 30 31 protected void setConfigProperties(LocalConfiguration config) throws Exception { 32 config.setProperty(GeneralPropertySet.RMI_PORT, Integer.toString(AppServerUtil.getPort())); 33 } 34 } 35 | Popular Tags |