diff options
author | Joakim Erdfelt <joakime@apache.org> | 2007-04-25 18:07:06 +0000 |
---|---|---|
committer | Joakim Erdfelt <joakime@apache.org> | 2007-04-25 18:07:06 +0000 |
commit | 72a1d94d244d073d6554b535e2c3adf8393f9935 (patch) | |
tree | eeaa747a4bffd6b7dc39fc9c9ac5352f2cace963 /archiva-scheduled | |
parent | f34cf2e6c06f52008d7b7c0ec1788563854a22dd (diff) | |
download | archiva-72a1d94d244d073d6554b535e2c3adf8393f9935.tar.gz archiva-72a1d94d244d073d6554b535e2c3adf8393f9935.zip |
* Ensure configuration file exists.
* Ensure configuration is synched with database.
* Fix application.xml for new Configuration load-on-starts.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches/archiva-jpox-database-refactor@532431 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-scheduled')
4 files changed, 43 insertions, 51 deletions
diff --git a/archiva-scheduled/pom.xml b/archiva-scheduled/pom.xml index 63e68f4dc..50fa26016 100644 --- a/archiva-scheduled/pom.xml +++ b/archiva-scheduled/pom.xml @@ -115,20 +115,6 @@ <plugin> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-maven-plugin</artifactId> - <executions> - <execution> - <id>merge</id> - <goals> - <goal>merge-descriptors</goal> - </goals> - <configuration> - <descriptors> - <descriptor>${basedir}/src/main/resources/META-INF/plexus/components.xml</descriptor> - <descriptor>${project.build.directory}/generated-resources/plexus/META-INF/plexus/components.xml</descriptor> - </descriptors> - </configuration> - </execution> - </executions> </plugin> </plugins> </build> diff --git a/archiva-scheduled/src/main/java/org/apache/maven/archiva/scheduled/ArchivaTaskQueue.java b/archiva-scheduled/src/main/java/org/apache/maven/archiva/scheduled/ArchivaTaskQueue.java new file mode 100644 index 000000000..f2deaa106 --- /dev/null +++ b/archiva-scheduled/src/main/java/org/apache/maven/archiva/scheduled/ArchivaTaskQueue.java @@ -0,0 +1,42 @@ +package org.apache.maven.archiva.scheduled; + +/* + * 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. + */ + +import org.codehaus.plexus.taskqueue.DefaultTaskQueue; + +/** + * ArchivaTaskQueue + * + * @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a> + * @version $Id$ + * @plexus.component role="org.codehaus.plexus.taskqueue.TaskQueue" + * role-hint="archiva-task-queue" + * lifecycle-handler="plexus-configurable" + */ +public class ArchivaTaskQueue + extends DefaultTaskQueue +{ + + public ArchivaTaskQueue() + { + super(); + /* do nothing special */ + } +} diff --git a/archiva-scheduled/src/main/java/org/apache/maven/archiva/scheduled/DefaultArchivaTaskScheduler.java b/archiva-scheduled/src/main/java/org/apache/maven/archiva/scheduled/DefaultArchivaTaskScheduler.java index 2ea5311c9..7b351e482 100644 --- a/archiva-scheduled/src/main/java/org/apache/maven/archiva/scheduled/DefaultArchivaTaskScheduler.java +++ b/archiva-scheduled/src/main/java/org/apache/maven/archiva/scheduled/DefaultArchivaTaskScheduler.java @@ -50,7 +50,7 @@ import java.util.List; * * @author <a href="mailto:brett@apache.org">Brett Porter</a> * @author <a href="mailto:jmcconnell@apache.org">Jesse McConnell</a> - * @plexus.component role="org.apache.maven.archiva.scheduler.ArchivaTaskScheduler" + * @plexus.component role="org.apache.maven.archiva.scheduled.ArchivaTaskScheduler" role-hint="default" */ public class DefaultArchivaTaskScheduler extends AbstractLogEnabled diff --git a/archiva-scheduled/src/main/resources/META-INF/plexus/components.xml b/archiva-scheduled/src/main/resources/META-INF/plexus/components.xml deleted file mode 100644 index 9c8752e90..000000000 --- a/archiva-scheduled/src/main/resources/META-INF/plexus/components.xml +++ /dev/null @@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="ISO-8859-1"?> -<!-- - ~ 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. - --> - -<components> - <component> - <role>org.codehaus.plexus.taskqueue.TaskQueue</role> - <role-hint>archiva-task-queue</role-hint> - <implementation>org.codehaus.plexus.taskqueue.DefaultTaskQueue</implementation> - <lifecycle-handler>plexus-configurable</lifecycle-handler> - <configuration> - <task-entry-evaluators> - </task-entry-evaluators> - <task-exit-evaluators> - </task-exit-evaluators> - <task-viability-evaluators> - </task-viability-evaluators> - </configuration> - </component> -</components>
\ No newline at end of file |