1 20 package org.apache.cactus.integration.ant.container.resin; 21 22 import java.io.File ; 23 import java.io.IOException ; 24 25 import org.apache.cactus.integration.ant.util.ResourceUtils; 26 import org.apache.tools.ant.taskdefs.Java; 27 import org.apache.tools.ant.types.FilterChain; 28 import org.apache.tools.ant.types.Path; 29 30 35 public class Resin3xContainer extends AbstractResinContainer 36 { 37 39 42 public final String getName() 43 { 44 return "Resin 3.x"; 45 } 46 47 49 52 protected final String getContainerDirName() 53 { 54 return "resin3x"; 55 } 56 57 60 protected void startUpAdditions(Java theJavaContainer, Path theClasspath) 61 { 62 theJavaContainer.addSysproperty(createSysProperty( 65 "java.util.logging.manager", "com.caucho.log.LogManagerImpl")); 66 67 theJavaContainer.addSysproperty(createSysProperty( 70 "java.library.path", new File (getDir(), "bin"))); 71 72 addToolsJarToClasspath(theClasspath); 75 } 76 77 80 protected void prepareAdditions(File theInstallDir, 81 FilterChain theFilterChain) throws IOException 82 { 83 ResourceUtils.copyResource(getProject(), 84 RESOURCE_PATH + getContainerDirName() + "/app-default.xml", 85 new File (theInstallDir, "app-default.xml"), theFilterChain); 86 } 87 } 88 | Popular Tags |