Examples of InstallTask


Examples of io.fabric8.process.manager.InstallTask

                .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.InstallTask

    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);

        System.out.println("Installed process " + install.getId() + " to " + install.getInstallDir());
        return null;
    }
View Full Code Here

Examples of org.apache.maven.artifact.ant.InstallTask

    public BaseMavenInstaller(String name, PomFilterContainer pomFilterContainer, ArtifactPomContainer artifactPomContainer, LoggingManagerInternal loggingManager) {
        super(name, pomFilterContainer, artifactPomContainer, loggingManager);
    }

    protected InstallDeployTaskSupport createPreConfiguredTask(Project project) {
        InstallTask installTask = installTaskFactory.create();
        installTask.setProject(project);
        return installTask;
    }
View Full Code Here

Examples of org.apache.maven.artifact.ant.InstallTask

        super(pomFilterContainer, artifactPomContainer, loggingManager);
        mavenSettingsSupplier = new MaybeUserMavenSettingsSupplier();
    }

    protected InstallDeployTaskSupport createPreConfiguredTask(Project project) {
        InstallTask installTask = createTask();
        installTask.setProject(project);
        return installTask;
    }
View Full Code Here

Examples of org.apache.sling.installer.api.tasks.InstallTask

        final TaskResource toActivate = group.getActiveResource();
        if ( !toActivate.getType().equals(InstallableResource.TYPE_CONFIG) ) {
            return null;
        }

        final InstallTask result;
    if (toActivate.getState() == ResourceState.UNINSTALL) {
            // if this is an uninstall, check if we have to install an older version
            // in this case we should do an update instead of uninstall/install (!)
            final TaskResource second = group.getNextActiveResource();
            if ( second != null &&
View Full Code Here

Examples of org.apache.sling.installer.api.tasks.InstallTask

    /**
     * @see org.apache.sling.installer.api.tasks.InstallTaskFactory#createTask(org.apache.sling.installer.api.tasks.TaskResourceGroup)
     */
    public InstallTask createTask(final TaskResourceGroup toActivate) {
        final InstallTask result;

        final TaskResource rsrc = toActivate.getActiveResource();
        if ( rsrc.getType().equals(TYPE_SUBSYSTEM) ) {

            // check if the required info is available
View Full Code Here

Examples of org.apache.sling.installer.api.tasks.InstallTask

            final MockBundleTaskCreator c = new MockBundleTaskCreator();
            c.addBundleInfo(SN, "1.1", Bundle.ACTIVE);
            final SortedSet<InstallTask> s = getTasks(r, c);
            assertEquals("Expected one tasks, bundle was not installed by us", 2, s.size());
            final Iterator<InstallTask> i = s.iterator();
            final InstallTask first = i.next();
            final InstallTask second = i.next();
            assertTrue("Expected a ChangeStateTask", first instanceof ChangeStateTask);
            assertTrue("Expected a BundleRemoveTask", second instanceof BundleRemoveTask);
        }
    }
View Full Code Here

Examples of org.apache.sling.installer.api.tasks.InstallTask

            c.addBundleInfo(SN, "1.1.0", Bundle.ACTIVE);

            final SortedSet<InstallTask> s = getTasks(r, c);
            assertEquals("Expected two tasks", 2, s.size());
            final Iterator<InstallTask> i = s.iterator();
            final InstallTask first = i.next();
            assertTrue("Expected a ChangeStateTask:" + first , first instanceof ChangeStateTask);
            final InstallTask second = i.next();
            assertTrue("Expected a BundleRemoveTask", second instanceof BundleRemoveTask);
            final BundleRemoveTask t = (BundleRemoveTask)second;
            assertEquals("Remove should be to V1.1", r[1].getEntityId(), t.getResource().getEntityId());
        }
    }
View Full Code Here

Examples of org.apache.sling.installer.api.tasks.InstallTask

            for(final String entityId : this.persistentList.getEntityIds()) {
                final EntityResourceList group = this.persistentList.getEntityResourceList(entityId);
                // Check the first resource in each group
                final RegisteredResource toActivate = group.getActiveResource();
                if ( toActivate != null ) {
                    final InstallTask task = getTask(services, group);
                    if ( task != null ) {
                        tasks.add(task);
                    }

                }
View Full Code Here

Examples of org.apache.sling.installer.api.tasks.InstallTask

    /**
     * Get the task for the resource.
     */
    private InstallTask getTask(List<InstallTaskFactory> services,
            final TaskResourceGroup rrg) {
        InstallTask result = null;

        for(final InstallTaskFactory factory : services) {
            if ( factory != null ) {
                result = factory.createTask(rrg);
                if ( result != null ) {
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.