Cargo : Installer
This page last changed on Jul 17, 2005 by vmassol.
DefinitionInstalls a container ExplanationAn Installer is meant to install a container. There is currently only a single Installer implementation: ZipURLInstaller which downloads a zipped container distribution from a URL and which installs it (i.e. unpacks it) in a specified directory. This is useful if you wish to fully automate a container installation without having to ask the user to manually install a container on their machine. Of course you don't need to use an Installer and you can rely on the fact that whoever is using Cargo already has a container installed on his machine. ExampleInstaller installer = new ZipURLInstaller( "http://www.caucho.com/download/resin-3.0.9.zip", "target/installs"); installer.install(); Container container = new Resin3xContainer( new Resin3xStandaloneConfiguration("target/resin3x")); container.setHomeDir(installer.getHomeDir()); [...] |
![]() |
Document generated by Confluence on Jul 21, 2005 06:52 |