Package org.codehaus.cargo.generic.configuration

Examples of org.codehaus.cargo.generic.configuration.DefaultConfigurationFactory


     */
    public void setupContainer() throws IOException {
        Installer installer = new ZipURLInstaller(new URL(getZipInstallerUrl()), "target/install/" + getContainerId());
        installer.install();
        ContainerFactory containerFac = new DefaultContainerFactory();
        ConfigurationFactory configFac = new DefaultConfigurationFactory();
        Configuration configuration =
            configFac.createConfiguration(getContainerId(), ContainerType.INSTALLED, ConfigurationType.STANDALONE);
        setConfigProps(configuration, getConfigProps());
        container =
            (InstalledLocalContainer) containerFac.createContainer(getContainerId(), ContainerType.INSTALLED, configuration);
        container.setLogger(new SimpleLogger());
        container.setHome(installer.getHome());
View Full Code Here


                deployablePath,
                DeployableType.WAR);

        // Container configuration
        ConfigurationFactory configurationFactory =
                new DefaultConfigurationFactory();

        LocalConfiguration configuration =
                (LocalConfiguration) configurationFactory.createConfiguration(
                        containerId,
                        ContainerType.INSTALLED,
                        ConfigurationType.STANDALONE);

        // Find and (if provided) set the port to use for the container.
View Full Code Here

    }

    @Override
    protected void deploy() {
        // create configuration factory
        final ConfigurationFactory configurationFactory = new DefaultConfigurationFactory();

        // create JBoss configuration
        final LocalConfiguration configuration = (LocalConfiguration) configurationFactory.createConfiguration("jboss4x",
                ContainerType.INSTALLED, ConfigurationType.EXISTING, containerHome
                        + "server/" + configurationName);

        // setup configuration
        final StringBuilder args = new StringBuilder();
View Full Code Here

     * Deploys the application to the correct
     */
    @Override
    protected void deploy() {
        // create configuration factory
        final ConfigurationFactory configurationFactory = new DefaultConfigurationFactory();

        // create JBoss configuration
        final LocalConfiguration configuration = (LocalConfiguration) configurationFactory.createConfiguration(tomcatVersion,
                ContainerType.INSTALLED, ConfigurationType.EXISTING, containerHome);

        // setup configuration
        final StringBuilder args = new StringBuilder();
        for (final String arg : jvmArguments) {
View Full Code Here

        if (LOGGER.isInfoEnabled()) {
            LOGGER.info("Creating configuration..");
        }

        // create configuration factory
        final ConfigurationFactory configurationFactory = new DefaultConfigurationFactory();

        // create JBoss configuration
        final LocalConfiguration configuration = (LocalConfiguration) configurationFactory.createConfiguration("jetty6x",
                ContainerType.INSTALLED, ConfigurationType.STANDALONE, containerHome
                + "cargo-conf/");

        // setup configuration
        final StringBuilder args = new StringBuilder();
View Full Code Here

     * Deploys the application to the correct
     */
    @Override
    protected void deploy() {
        // create configuration factory
        final ConfigurationFactory configurationFactory = new DefaultConfigurationFactory();

        // create JOnas configuration
        final LocalConfiguration configuration = (LocalConfiguration) configurationFactory.createConfiguration("jonas4x",
                ContainerType.INSTALLED, ConfigurationType.EXISTING, containerHome);

        // setup configuration
        final StringBuilder args = new StringBuilder();
        for (final String arg : jvmArguments) {
View Full Code Here

     * Deploys the application to the correct
     */
    @Override
    protected void deploy() {
        // create configuration factory
        final ConfigurationFactory configurationFactory = new DefaultConfigurationFactory();

        // create Glassfish configuration
        final LocalConfiguration configuration = (LocalConfiguration) configurationFactory.createConfiguration("glassfish2",
                ContainerType.INSTALLED, ConfigurationType.STANDALONE, containerHome
                + "cargo-conf/");

        // setup configuration
        final StringBuilder args = new StringBuilder();
View Full Code Here

    // TODO(jarcec): We should parametrize those paths, version, etc...
    // Source: http://cargo.codehaus.org/Functional+testing
    Installer installer = new ZipURLInstaller(new URL("http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.36/bin/apache-tomcat-6.0.36.zip"));
    installer.install();

    LocalConfiguration configuration = (LocalConfiguration) new DefaultConfigurationFactory().createConfiguration("tomcat6x", ContainerType.INSTALLED, ConfigurationType.STANDALONE);
    container = (InstalledLocalContainer) new DefaultContainerFactory().createContainer("tomcat6x", ContainerType.INSTALLED, configuration);

    // Set home to our installed tomcat instance
    container.setHome(installer.getHome());
View Full Code Here

                deployablePath,
                DeployableType.WAR);

        // Container configuration
        ConfigurationFactory configurationFactory =
                new DefaultConfigurationFactory();

        LocalConfiguration configuration =
                (LocalConfiguration) configurationFactory.createConfiguration(
                        containerId,
                        ConfigurationType.STANDALONE);

        // Find and (if provided) set the port to use for the container.
        String servletPort = System.getProperty("cargo.servlet.port");
View Full Code Here

        }
        //System.out.println("INFO: Tomcat home is " + tomcatHome);

        // (2) Create the Cargo Container instance wrapping our physical container
        LocalConfiguration configuration = (LocalConfiguration)
                new DefaultConfigurationFactory().createConfiguration(
                        "tomcat5x", ConfigurationType.STANDALONE);
        container = (InstalledLocalContainer)
                new DefaultContainerFactory().createContainer(
                        "tomcat5x", ContainerType.INSTALLED, configuration);
        container.setHome(tomcatHome);
View Full Code Here

TOP

Related Classes of org.codehaus.cargo.generic.configuration.DefaultConfigurationFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.