]> source.dussan.org Git - archiva.git/commitdiff
PR: MRM-38
authorEdwin L. Punzalan <epunzalan@apache.org>
Thu, 23 Feb 2006 02:33:57 +0000 (02:33 +0000)
committerEdwin L. Punzalan <epunzalan@apache.org>
Thu, 23 Feb 2006 02:33:57 +0000 (02:33 +0000)
Submitted by: John Tolentino

This is the correct patch for the background scheduler.

git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@380029 13f79535-47bb-0310-9956-ffa450edef68

maven-repository-webapp/pom.xml
maven-repository-webapp/src/main/java/org/apache/maven/repository/manager/web/action/PackageSearchAction.java

index 6dc4c77fefe56fb8f7595bb2eee0fe9e0d9b19b7..d3df67b13a406b85ee7597d939edd937eac60943 100644 (file)
       <!-- TODO: actually, just exclude from WAR plugin -->
       <scope>provided</scope>
     </dependency>
+    <dependency>
+      <groupId>org.codehaus.plexus</groupId>
+      <artifactId>plexus-quartz</artifactId>
+      <version>1.0-alpha-2-SNAPSHOT</version>
+    </dependency>
   </dependencies>
   <build>
     <finalName>maven-repository-webapp</finalName>
index 5f6acc812efa8abb745f7438195f383736938a69..f1e7a5707fd2b98797f1ff391da9242014dced1f 100644 (file)
@@ -26,6 +26,8 @@ import org.apache.maven.repository.indexing.RepositoryIndexSearchException;
 import org.apache.maven.repository.indexing.RepositoryIndexingFactory;
 import org.apache.maven.repository.indexing.DefaultRepositoryIndexSearcher;
 import org.apache.maven.repository.indexing.query.SinglePhraseQuery;
+import org.codehaus.plexus.scheduler.Scheduler;
+import org.codehaus.plexus.scheduler.configuration.SchedulerConfiguration;
 
 import java.io.File;
 import java.net.MalformedURLException;
@@ -44,6 +46,11 @@ public class PackageSearchAction
 
     private String md5;
 
+    /**
+     * @plexus.requirement
+     */
+    private Scheduler scheduler;
+
     /**
      * @plexus.requirement
      */