This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.installer.factory.configuration-1.0.10 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-installer-factory-configuration.git
commit ccfad3a3e035734f8d7aa8ee43b602eea7c843d8 Author: Carsten Ziegeler <[email protected]> AuthorDate: Fri Dec 23 11:36:05 2011 +0000 Use new change task instead of own copy git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/installer/factories/configuration@1222647 13f79535-47bb-0310-9956-ffa450edef68 --- pom.xml | 2 +- .../configuration/impl/ChangeStateTask.java | 51 ---------------------- .../configuration/impl/ConfigTaskCreator.java | 1 + 3 files changed, 2 insertions(+), 52 deletions(-) diff --git a/pom.xml b/pom.xml index 62a3ed3..05d88f1 100644 --- a/pom.xml +++ b/pom.xml @@ -79,7 +79,7 @@ <dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.installer.core</artifactId> - <version>3.2.0</version> + <version>3.2.3-SNAPSHOT</version> <scope>provided</scope> </dependency> </dependencies> diff --git a/src/main/java/org/apache/sling/installer/factories/configuration/impl/ChangeStateTask.java b/src/main/java/org/apache/sling/installer/factories/configuration/impl/ChangeStateTask.java deleted file mode 100644 index d7ba948..0000000 --- a/src/main/java/org/apache/sling/installer/factories/configuration/impl/ChangeStateTask.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.sling.installer.factories.configuration.impl; - -import org.apache.sling.installer.api.tasks.InstallationContext; -import org.apache.sling.installer.api.tasks.ResourceState; -import org.apache.sling.installer.api.tasks.TaskResourceGroup; - -/** - * Simple general task, setting the state of a registered resource. - */ -public class ChangeStateTask extends AbstractConfigTask { - - private static final String ORDER = "00-"; - - private final ResourceState state; - - public ChangeStateTask(final TaskResourceGroup r, - final ResourceState s) { - super(r, null); - this.state = s; - } - - /** - * @see org.apache.sling.installer.api.tasks.InstallTask#execute(org.apache.sling.installer.api.tasks.InstallationContext) - */ - public void execute(final InstallationContext ctx) { - this.setFinishedState(this.state); - } - - @Override - public String getSortKey() { - return ORDER + getResource().getEntityId(); - } -} diff --git a/src/main/java/org/apache/sling/installer/factories/configuration/impl/ConfigTaskCreator.java b/src/main/java/org/apache/sling/installer/factories/configuration/impl/ConfigTaskCreator.java index b8f8ea7..8f4f3bc 100644 --- a/src/main/java/org/apache/sling/installer/factories/configuration/impl/ConfigTaskCreator.java +++ b/src/main/java/org/apache/sling/installer/factories/configuration/impl/ConfigTaskCreator.java @@ -24,6 +24,7 @@ import java.util.Map; import org.apache.sling.installer.api.InstallableResource; import org.apache.sling.installer.api.ResourceChangeListener; +import org.apache.sling.installer.api.tasks.ChangeStateTask; import org.apache.sling.installer.api.tasks.InstallTask; import org.apache.sling.installer.api.tasks.InstallTaskFactory; import org.apache.sling.installer.api.tasks.RegisteredResource; -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
