]> source.dussan.org Git - archiva.git/commitdiff
notes
authorBrett Porter <brett@apache.org>
Sat, 22 Jul 2006 15:15:37 +0000 (15:15 +0000)
committerBrett Porter <brett@apache.org>
Sat, 22 Jul 2006 15:15:37 +0000 (15:15 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@424594 13f79535-47bb-0310-9956-ffa450edef68

maven-repository-core/src/main/java/org/apache/maven/repository/scheduler/DefaultRepositoryTaskScheduler.java
maven-repository-webapp/src/main/java/org/apache/maven/repository/manager/web/action/admin/ConfigureAction.java

index 2f0bf664754cef15df447a3b9581c5cc6290c5fa..be7a66e0f8bfa98bcdb42d7110ba4616f26b2b9f 100644 (file)
@@ -109,6 +109,7 @@ public class DefaultRepositoryTaskScheduler
                 new CronTrigger( INDEXER_JOB + "Trigger", DISCOVERER_GROUP, configuration.getIndexerCronExpression() );
             scheduler.scheduleJob( jobDetail, trigger );
 
+            // TODO: run as a job so it doesn't block startup/configuration saving
             try
             {
                 indexerTask.executeNowIfNeeded();
index 2e8955957f61c587960aa06fd8e15ba7508a12df..2c4fd299ef5b45d4df4fafb16c409c839235a1fa 100644 (file)
@@ -68,6 +68,8 @@ public class ConfigureAction
         // TODO: these defaults belong in the model. They shouldn't be stored here, as you want them to re-default
         // should the repository change even if these didn't
 
+        // TODO: if these are changed, do we move the index or recreate it?
+
         // TODO: these should be on an advanced configuration form, not the standard one
         if ( StringUtils.isEmpty( configuration.getIndexPath() ) )
         {
@@ -85,6 +87,8 @@ public class ConfigureAction
 
         configurationStore.storeConfiguration( configuration );
 
+        // TODO: if the repository has changed, we need to check if indexing is needed
+
         addActionMessage( "Successfully saved configuration" );
 
         return SUCCESS;