Cargo : Installer This page last changed on Mar 09, 2006 by vmassol. ### Definition Installs a container ### Explanation An Installer is meant to install a container on your local machine. 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 have to use an Installer if you want to use a container already installed on your machine. ### Example using the Java API
    Installer installer = new ZipURLInstaller(
        "http://www.caucho.com/download/resin-3.0.9.zip",
        "target/installs");
    installer.install();

    InstalledLocalContainer container = new Resin3xInstalledLocalContainer(
        new Resin3xStandaloneConfiguration(new File("target/resin3x")));
    container.setHome(installer.getHome());
    [...]
### Example using the Ant API
    <cargo containerId="resin3x" [...]>
      <zipUrlInstaller
          installUrl="http://www.caucho.com/download/resin-3.0.9.zip",
          installDir="target/installs"/>
      [...]
    </cargo>

Document generated by Confluence on Mar 22, 2006 15:28