Examples of InstallOptions


Examples of io.fabric8.process.manager.InstallOptions

    public String getPassword() {
        return password;
    }

    public InstallOptions asInstallOptions() {
        return new InstallOptions(getId(), getName(), getUrl(), getControllerUrl(), getControllerJson(), getExtractCmd(), getPostUnpackCmds(), getPostInstallCmds(), isOffline(), getOptionalDependencyPatterns(), getExcludeDependencyFilterPatterns(), getMainClass(), getProperties(), getEnvironment(), getJvmOptions(), getJarFiles(), getContainer(), getDownloadStrategy());
    }
View Full Code Here

Examples of io.fabric8.process.manager.InstallOptions

    Installation provisionProcess(ProcessRequirements requirements) throws Exception {
        // TODO check that the installation is the same
        uninstallProcess(requirements);

        //String id = requirements.getId();
        InstallOptions installOptions = requirements.createInstallOptions();
        Profile processProfile = getProcessProfile(requirements, true);
        Profile deployProcessProfile = getProcessProfile(requirements, false);
        Map<String, String> configuration = ProcessUtils.getProcessLayout(fabricService, processProfile, requirements.getLayout());

        //DownloadManager downloadManager = DownloadManagers.createDownloadManager(fabricService, executorService);
        InstallTask applyConfiguration = new ApplyConfigurationTask(configuration, installOptions.getProperties());
        List<Profile> profiles = new ArrayList<Profile>();
        profiles.add(deployProcessProfile);
        Map<String, File> javaArtifacts = JavaContainers.getJavaContainerArtifactsFiles(fabricService, profiles, executorService);
        String versionId = Profiles.versionId(fabricService.getCurrentContainer().getVersion());
        List<String> profileIds = Profiles.profileIds(profiles);
View Full Code Here

Examples of io.fabric8.process.manager.InstallOptions

        try {
            // get process install parameters,
            // note that service.pid and service.factoryPid are added too
            Map<String, String> env = new HashMap<String, String>();
            InstallOptions options = getInstallOptions(incoming, env);

            final Installation installation = installationMap.get(pid);
            if (null != installation) {

                // TODO only environment updates are supported, process installation parameters cannot be updated,
View Full Code Here

Examples of io.fabric8.process.manager.InstallOptions

                .offline(offline)
                .optionalDependencyPatterns(optionalDependencyPatterns)
                .excludeDependencyFilterPatterns(excludeDependencyPatterns)
                .jvmOptions(jvmOptions)
                .mainClass(mainClass);
        InstallOptions options = build(builder);

        InstallTask postInstall = null;
        Installation install = getProcessManager().installJar(options, postInstall);
        System.out.println("Installed process " + install.getId() + " to " + install.getInstallDir());
        return null;
View Full Code Here

Examples of io.fabric8.process.manager.InstallOptions

    }

    @Override
    protected Object doExecute() throws Exception {
        InstallOptions.InstallOptionsBuilder builder = InstallOptions.builder().name(name).url(url).controllerUrl(getControllerURL());
        InstallOptions options = build(builder);

        // allow a post install step to be specified - e.g. specifying jars/wars?
        InstallTask postInstall = null;
        Installation install = getProcessManager().install(options, postInstall);
View Full Code Here

Examples of io.fabric8.process.manager.InstallOptions

                fail("Could not find " + artifactPath + " in either user maven repository " + USER_REPOSITORY);
            }
        }
        String url = "file://" + fileName;

        InstallOptions installOptions = new InstallOptions.InstallOptionsBuilder().jvmOptions("-D" + SPRING_MAIN_SOURCES + "=io.fabric8.process.spring.boot.itests.service.invoicing").
                url(url).build();
        processController = processManagerService.installJar(installOptions, null).getController();
        startProcess(processController);

        waitForRestResource("http://localhost:8080/");
View Full Code Here

Examples of org.apache.ivy.core.install.InstallOptions

    }

    public ResolveReport install(ModuleRevisionId mrid, String from, String to, boolean transitive,
            boolean validate, boolean overwrite, Filter artifactFilter, File cache,
            String matcherName) throws IOException {
        return ivy.install(mrid, from, to, new InstallOptions().setTransitive(transitive)
                .setValidate(validate).setOverwrite(overwrite).setArtifactFilter(artifactFilter)
                .setMatcherName(matcherName));
    }
View Full Code Here

Examples of org.apache.ivy.core.install.InstallOptions

        try {
            report = ivy.install(
                mrid,
                from,
                to,
                new InstallOptions().setTransitive(transitive).setValidate(doValidate(settings))
                        .setOverwrite(overwrite).setConfs(conf.split(","))
                        .setArtifactFilter(FilterHelper.getArtifactTypeFilter(type))
                        .setMatcherName(matcher)
                        .setInstallOriginalMetadata(installOriginalMetadata));
        } catch (Exception e) {
View Full Code Here

Examples of org.apache.ivy.core.install.InstallOptions

    public ResolveReport install(ModuleRevisionId mrid, String from, String to, boolean transitive,
            boolean validate, boolean overwrite, Filter artifactFilter, File cache,
            String matcherName) throws IOException {
        return ivy.install(mrid, from, to,
            new InstallOptions()
                .setTransitive(transitive)
                .setValidate(validate)
                .setOverwrite(overwrite)
                .setArtifactFilter(artifactFilter)
                .setMatcherName(matcherName));
View Full Code Here

Examples of org.apache.ivy.core.install.InstallOptions

            ModuleRevisionId.newInstance(organisation, module, branch, revision);
       
        ResolveReport report;
        try {
            report = ivy.install(mrid, from, to,
                new InstallOptions()
                    .setTransitive(transitive)
                    .setValidate(doValidate(settings))
                    .setOverwrite(overwrite)
                    .setArtifactFilter(FilterHelper.getArtifactTypeFilter(type))
                    .setMatcherName(matcher));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.