aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2007-09-12 11:39:16 +0000
committerBrett Porter <brett@apache.org>2007-09-12 11:39:16 +0000
commitae4e1ada9b144c349caa4cff17297cd7738ab705 (patch)
treec5efe350b363aa652138c7a55b59c230263ec4d3
parent184cf0176b36030801023169d6f1fcb442825806 (diff)
downloadarchiva-ae4e1ada9b144c349caa4cff17297cd7738ab705.tar.gz
archiva-ae4e1ada9b144c349caa4cff17297cd7738ab705.zip
[MRM-144] indexed -> scanned
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@574891 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/DefaultArchivaConfiguration.java1
-rw-r--r--archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/MavenProxyPropertyLoader.java2
-rw-r--r--archiva-base/archiva-configuration/src/main/mdo/configuration.mdo11
-rw-r--r--archiva-base/archiva-configuration/src/main/resources/org/apache/maven/archiva/configuration/default-archiva.xml4
-rw-r--r--archiva-base/archiva-configuration/src/test/conf/archiva-v1.xml2
-rw-r--r--archiva-base/archiva-configuration/src/test/conf/conf-base.xml1
-rw-r--r--archiva-base/archiva-configuration/src/test/conf/repository-manager.xml4
-rw-r--r--archiva-base/archiva-configuration/src/test/java/org/apache/maven/archiva/configuration/ArchivaConfigurationTest.java12
-rw-r--r--archiva-base/archiva-configuration/src/test/java/org/apache/maven/archiva/configuration/ConfigurationTest.java4
-rw-r--r--archiva-base/archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/search/DefaultCrossRepositorySearch.java2
-rw-r--r--archiva-base/archiva-indexer/src/test/java/org/apache/maven/archiva/indexer/search/DefaultCrossRepositorySearchTest.java2
-rw-r--r--archiva-scheduled/src/main/java/org/apache/maven/archiva/scheduled/DefaultArchivaTaskScheduler.java2
-rw-r--r--archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/ConfigureRepositoryAction.java4
-rw-r--r--archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/include/repositoryForm.jspf2
-rw-r--r--archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositories.jsp4
-rw-r--r--archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/action/admin/repositories/ConfigureRepositoryActionTest.java8
16 files changed, 36 insertions, 29 deletions
diff --git a/archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/DefaultArchivaConfiguration.java b/archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/DefaultArchivaConfiguration.java
index 1acc3c8a7..04355df68 100644
--- a/archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/DefaultArchivaConfiguration.java
+++ b/archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/DefaultArchivaConfiguration.java
@@ -122,6 +122,7 @@ public class DefaultArchivaConfiguration
for ( Iterator i = config.getRepositories().iterator(); i.hasNext(); )
{
V1RepositoryConfiguration r = (V1RepositoryConfiguration) i.next();
+ r.setScanned( r.isIndexed() );
if ( r.getUrl().startsWith( "file://" ) )
{
diff --git a/archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/MavenProxyPropertyLoader.java b/archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/MavenProxyPropertyLoader.java
index e174c7edb..4429c1000 100644
--- a/archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/MavenProxyPropertyLoader.java
+++ b/archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/MavenProxyPropertyLoader.java
@@ -51,7 +51,7 @@ public class MavenProxyPropertyLoader
config.setLocation( localCachePath );
config.setName( "Imported Maven-Proxy Cache" );
config.setId( "maven-proxy" );
- config.setIndexed( false );
+ config.setScanned( false );
config.setReleases( true );
config.setSnapshots( false );
configuration.addManagedRepository( config );
diff --git a/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo b/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo
index 5ed67ddb0..0f371f824 100644
--- a/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo
+++ b/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo
@@ -304,12 +304,11 @@
<description>True if this repository contains snapshot versioned artifacts.</description>
<defaultValue>false</defaultValue>
</field>
- <!-- TODO! is indexed better named as scanned? check it's usages (or lack of usages) when iterating repos -->
<field>
- <name>indexed</name>
+ <name>scanned</name>
<version>1.0.0+</version>
<type>boolean</type>
- <description>True if this repository should be indexed.</description>
+ <description>True if this repository should be scanned and processed.</description>
<defaultValue>true</defaultValue>
</field>
<field>
@@ -373,6 +372,12 @@
The URL for this repository.
</description>
</field>
+ <field>
+ <name>indexed</name>
+ <version>1.0.0+</version>
+ <type>boolean</type>
+ <required>true</required>
+ </field>
</fields>
</class>
diff --git a/archiva-base/archiva-configuration/src/main/resources/org/apache/maven/archiva/configuration/default-archiva.xml b/archiva-base/archiva-configuration/src/main/resources/org/apache/maven/archiva/configuration/default-archiva.xml
index 6b5b2134d..e0b1798c1 100644
--- a/archiva-base/archiva-configuration/src/main/resources/org/apache/maven/archiva/configuration/default-archiva.xml
+++ b/archiva-base/archiva-configuration/src/main/resources/org/apache/maven/archiva/configuration/default-archiva.xml
@@ -9,7 +9,7 @@
<layout>default</layout>
<releases>true</releases>
<snapshots>false</snapshots>
- <indexed>true</indexed>
+ <scanned>true</scanned>
<refreshCronExpression>0 0 0 * * ?</refreshCronExpression>
<daysOlder>30</daysOlder>
</managedRepository>
@@ -20,7 +20,7 @@
<layout>default</layout>
<releases>false</releases>
<snapshots>true</snapshots>
- <indexed>true</indexed>
+ <scanned>true</scanned>
<refreshCronExpression>0 0\,30 0 * * ?</refreshCronExpression>
<daysOlder>30</daysOlder>
</managedRepository>
diff --git a/archiva-base/archiva-configuration/src/test/conf/archiva-v1.xml b/archiva-base/archiva-configuration/src/test/conf/archiva-v1.xml
index 3dd0281ae..917850952 100644
--- a/archiva-base/archiva-configuration/src/test/conf/archiva-v1.xml
+++ b/archiva-base/archiva-configuration/src/test/conf/archiva-v1.xml
@@ -37,7 +37,7 @@
<layout>default</layout>
<releases>false</releases>
<snapshots>true</snapshots>
- <indexed>true</indexed>
+ <indexed>false</indexed>
<refreshCronExpression>0 0,30 * * ?</refreshCronExpression>
</repository>
<repository>
diff --git a/archiva-base/archiva-configuration/src/test/conf/conf-base.xml b/archiva-base/archiva-configuration/src/test/conf/conf-base.xml
index 4e96ccc0d..083f46a79 100644
--- a/archiva-base/archiva-configuration/src/test/conf/conf-base.xml
+++ b/archiva-base/archiva-configuration/src/test/conf/conf-base.xml
@@ -28,6 +28,7 @@
<layout>default</layout>
<releases>true</releases>
<snapshots>false</snapshots>
+ <!-- TODO! -->
<indexed>true</indexed>
<refreshCronExpression>0 0 * * ?</refreshCronExpression>
</managedRepository>
diff --git a/archiva-base/archiva-configuration/src/test/conf/repository-manager.xml b/archiva-base/archiva-configuration/src/test/conf/repository-manager.xml
index 06a881c1b..a8f7054a9 100644
--- a/archiva-base/archiva-configuration/src/test/conf/repository-manager.xml
+++ b/archiva-base/archiva-configuration/src/test/conf/repository-manager.xml
@@ -28,7 +28,7 @@
<layout>default</layout>
<releases>true</releases>
<snapshots>false</snapshots>
- <indexed>true</indexed>
+ <scanned>true</scanned>
<refreshCronExpression>0 0 * * ?</refreshCronExpression>
</managedRepository>
<managedRepository>
@@ -38,7 +38,7 @@
<layout>default</layout>
<releases>false</releases>
<snapshots>true</snapshots>
- <indexed>true</indexed>
+ <scanned>true</scanned>
<refreshCronExpression>0 0,30 * * ?</refreshCronExpression>
</managedRepository>
</managedRepositories>
diff --git a/archiva-base/archiva-configuration/src/test/java/org/apache/maven/archiva/configuration/ArchivaConfigurationTest.java b/archiva-base/archiva-configuration/src/test/java/org/apache/maven/archiva/configuration/ArchivaConfigurationTest.java
index f7708409f..fd4f88b8e 100644
--- a/archiva-base/archiva-configuration/src/test/java/org/apache/maven/archiva/configuration/ArchivaConfigurationTest.java
+++ b/archiva-base/archiva-configuration/src/test/java/org/apache/maven/archiva/configuration/ArchivaConfigurationTest.java
@@ -66,7 +66,7 @@ public class ArchivaConfigurationTest
assertEquals( "check managed repositories", "Archiva Managed Internal Repository", repository.getName() );
assertEquals( "check managed repositories", "internal", repository.getId() );
assertEquals( "check managed repositories", "default", repository.getLayout() );
- assertTrue( "check managed repositories", repository.isIndexed() );
+ assertTrue( "check managed repositories", repository.isScanned() );
}
public void testGetConfigurationFromDefaults()
@@ -87,7 +87,7 @@ public class ArchivaConfigurationTest
assertEquals( "check managed repositories", "Archiva Managed Internal Repository", repository.getName() );
assertEquals( "check managed repositories", "internal", repository.getId() );
assertEquals( "check managed repositories", "default", repository.getLayout() );
- assertTrue( "check managed repositories", repository.isIndexed() );
+ assertTrue( "check managed repositories", repository.isScanned() );
}
/**
@@ -489,7 +489,7 @@ public class ArchivaConfigurationTest
assertEquals( "check managed repositories", "Archiva Managed Internal Repository", repository.getName() );
assertEquals( "check managed repositories", "internal", repository.getId() );
assertEquals( "check managed repositories", "default", repository.getLayout() );
- assertTrue( "check managed repositories", repository.isIndexed() );
+ assertTrue( "check managed repositories", repository.isScanned() );
}
public void testAutoDetectV1()
@@ -510,7 +510,7 @@ public class ArchivaConfigurationTest
assertEquals( "check managed repositories", "Archiva Managed Internal Repository", repository.getName() );
assertEquals( "check managed repositories", "internal", repository.getId() );
assertEquals( "check managed repositories", "default", repository.getLayout() );
- assertTrue( "check managed repositories", repository.isIndexed() );
+ assertTrue( "check managed repositories", repository.isScanned() );
}
public void testArchivaV1()
@@ -533,7 +533,7 @@ public class ArchivaConfigurationTest
assertEquals( "check managed repositories", "Archiva Managed Internal Repository", repository.getName() );
assertEquals( "check managed repositories", "internal", repository.getId() );
assertEquals( "check managed repositories", "default", repository.getLayout() );
- assertTrue( "check managed repositories", repository.isIndexed() );
+ assertTrue( "check managed repositories", repository.isScanned() );
assertFalse( "check managed repositories", repository.isSnapshots() );
repository = map.get( "snapshots" );
@@ -542,7 +542,7 @@ public class ArchivaConfigurationTest
assertEquals( "check managed repositories", "Archiva Managed Snapshot Repository", repository.getName() );
assertEquals( "check managed repositories", "snapshots", repository.getId() );
assertEquals( "check managed repositories", "default", repository.getLayout() );
- assertTrue( "check managed repositories", repository.isIndexed() );
+ assertFalse( "check managed repositories", repository.isScanned() );
assertTrue( "check managed repositories", repository.isSnapshots() );
}
diff --git a/archiva-base/archiva-configuration/src/test/java/org/apache/maven/archiva/configuration/ConfigurationTest.java b/archiva-base/archiva-configuration/src/test/java/org/apache/maven/archiva/configuration/ConfigurationTest.java
index c242bcb8b..eeebb7edc 100644
--- a/archiva-base/archiva-configuration/src/test/java/org/apache/maven/archiva/configuration/ConfigurationTest.java
+++ b/archiva-base/archiva-configuration/src/test/java/org/apache/maven/archiva/configuration/ConfigurationTest.java
@@ -107,13 +107,13 @@ public class ConfigurationTest
}
private ManagedRepositoryConfiguration createManagedRepository( String id, String name, String location,
- boolean indexed )
+ boolean scanned )
{
ManagedRepositoryConfiguration repo = new ManagedRepositoryConfiguration();
repo.setId( id );
repo.setName( name );
repo.setLocation( location );
- repo.setIndexed( indexed );
+ repo.setScanned( scanned );
return repo;
}
diff --git a/archiva-base/archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/search/DefaultCrossRepositorySearch.java b/archiva-base/archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/search/DefaultCrossRepositorySearch.java
index 2d1a955cf..c98d2500a 100644
--- a/archiva-base/archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/search/DefaultCrossRepositorySearch.java
+++ b/archiva-base/archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/search/DefaultCrossRepositorySearch.java
@@ -328,7 +328,7 @@ public class DefaultCrossRepositorySearch
List<ManagedRepositoryConfiguration> repos = configuration.getConfiguration().getManagedRepositories();
for ( ManagedRepositoryConfiguration repo : repos )
{
- if ( repo.isIndexed() )
+ if ( repo.isScanned() )
{
localIndexedRepositories.add( ArchivaConfigurationAdaptor.toArchivaRepository( repo ) );
}
diff --git a/archiva-base/archiva-indexer/src/test/java/org/apache/maven/archiva/indexer/search/DefaultCrossRepositorySearchTest.java b/archiva-base/archiva-indexer/src/test/java/org/apache/maven/archiva/indexer/search/DefaultCrossRepositorySearchTest.java
index 2a0d8d657..40c9e054b 100644
--- a/archiva-base/archiva-indexer/src/test/java/org/apache/maven/archiva/indexer/search/DefaultCrossRepositorySearchTest.java
+++ b/archiva-base/archiva-indexer/src/test/java/org/apache/maven/archiva/indexer/search/DefaultCrossRepositorySearchTest.java
@@ -76,7 +76,7 @@ public class DefaultCrossRepositorySearchTest
repoConfig.setName( TEST_DEFAULT_REPOSITORY_NAME );
repoConfig.setLocation( repoDir.getAbsolutePath() );
repoConfig.setIndexDir( indexLocation.getAbsolutePath() );
- repoConfig.setIndexed( true );
+ repoConfig.setScanned( true );
if ( indexLocation.exists() )
{
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 0bd89c3a1..3deb5bc42 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
@@ -103,7 +103,7 @@ public class DefaultArchivaTaskScheduler
{
ManagedRepositoryConfiguration repoConfig = (ManagedRepositoryConfiguration) i.next();
- if ( repoConfig.isIndexed() )
+ if ( repoConfig.isScanned() )
{
scheduleRepositoryJobs( repoConfig );
}
diff --git a/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/ConfigureRepositoryAction.java b/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/ConfigureRepositoryAction.java
index b1c1251f8..9f74cee0c 100644
--- a/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/ConfigureRepositoryAction.java
+++ b/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/ConfigureRepositoryAction.java
@@ -57,7 +57,7 @@ public class ConfigureRepositoryAction
this.mode = "add";
this.repository.setReleases( true );
- this.repository.setIndexed( true );
+ this.repository.setScanned( true );
return INPUT;
}
@@ -128,7 +128,7 @@ public class ConfigureRepositoryAction
{
this.repository = new ManagedRepositoryConfiguration();
this.repository.setReleases( false );
- this.repository.setIndexed( false );
+ this.repository.setScanned( false );
}
else
{
diff --git a/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/include/repositoryForm.jspf b/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/include/repositoryForm.jspf
index 46b5727ef..8840a4e3c 100644
--- a/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/include/repositoryForm.jspf
+++ b/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/include/repositoryForm.jspf
@@ -28,7 +28,7 @@
<ww:textfield name="repository.retentionCount" label="Repository Purge By Retention Count" size="5"/>
<ww:checkbox name="repository.releases" value="repository.releases" label="Releases Included"/>
<ww:checkbox name="repository.snapshots" value="repository.snapshots" label="Snapshots Included"/>
-<ww:checkbox name="repository.indexed" value="repository.indexed" label="Scannable"/>
+<ww:checkbox name="repository.scanned" value="repository.scanned" label="Scannable"/>
<ww:checkbox name="repository.deleteReleasedSnapshots" value="repository.deleteReleasedSnapshots"
label="Delete Released Snapshots"/>
diff --git a/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositories.jsp b/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositories.jsp
index 484f60d0f..210109fd4 100644
--- a/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositories.jsp
+++ b/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositories.jsp
@@ -148,13 +148,13 @@
</tr>
<tr>
<th>Scanned</th>
- <td class="${repository.indexed ? 'donemark' : 'errormark'} booleanIcon"> ${repository.indexed}</td>
+ <td class="${repository.scanned ? 'donemark' : 'errormark'} booleanIcon"> ${repository.scanned}</td>
</tr>
<tr>
<th>Delete Released Snapshots</th>
<td class="${repository.deleteReleasedSnapshots ? 'donemark' : 'errormark'} booleanIcon"> ${repository.deleteReleasedSnapshots}</td>
</tr>
-<c:if test="${repository.indexed}">
+<c:if test="${repository.scanned}">
<tr>
<th>Scanning Cron</th>
<td>${repository.refreshCronExpression}</td>
diff --git a/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/action/admin/repositories/ConfigureRepositoryActionTest.java b/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/action/admin/repositories/ConfigureRepositoryActionTest.java
index 77393aa08..bd6f85fd3 100644
--- a/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/action/admin/repositories/ConfigureRepositoryActionTest.java
+++ b/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/action/admin/repositories/ConfigureRepositoryActionTest.java
@@ -103,7 +103,7 @@ public class ConfigureRepositoryActionTest
assertNull( configuration.getId() );
// check all booleans are false
assertFalse( configuration.isDeleteReleasedSnapshots() );
- assertFalse( configuration.isIndexed() );
+ assertFalse( configuration.isScanned() );
assertFalse( configuration.isReleases() );
assertFalse( configuration.isSnapshots() );
@@ -112,7 +112,7 @@ public class ConfigureRepositoryActionTest
// check defaults
assertFalse( configuration.isDeleteReleasedSnapshots() );
- assertTrue( configuration.isIndexed() );
+ assertTrue( configuration.isScanned() );
assertTrue( configuration.isReleases() );
assertFalse( configuration.isSnapshots() );
}
@@ -312,7 +312,7 @@ public class ConfigureRepositoryActionTest
assertEquals( expectedRepository.getRefreshCronExpression(), actualRepository.getRefreshCronExpression() );
assertEquals( expectedRepository.getRetentionCount(), actualRepository.getRetentionCount() );
assertEquals( expectedRepository.isDeleteReleasedSnapshots(), actualRepository.isDeleteReleasedSnapshots() );
- assertEquals( expectedRepository.isIndexed(), actualRepository.isIndexed() );
+ assertEquals( expectedRepository.isScanned(), actualRepository.isScanned() );
assertEquals( expectedRepository.isReleases(), actualRepository.isReleases() );
assertEquals( expectedRepository.isSnapshots(), actualRepository.isSnapshots() );
}
@@ -343,7 +343,7 @@ public class ConfigureRepositoryActionTest
repository.setRetentionCount( 20 );
repository.setReleases( true );
repository.setSnapshots( true );
- repository.setIndexed( true );
+ repository.setScanned( true );
repository.setDeleteReleasedSnapshots( true );
}