diff options
author | Olivier Lamy <olamy@apache.org> | 2013-02-07 14:57:32 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2013-02-07 14:57:32 +0000 |
commit | e0ecff38ea3e9d4f6c9b3bf4f93843e572e38bd1 (patch) | |
tree | 46727204729198c6e87f3dcbaab7055b25a8225c /archiva-modules/archiva-web/archiva-webdav | |
parent | 3e447d498c2634e706e002700540a3d8ff015169 (diff) | |
download | archiva-e0ecff38ea3e9d4f6c9b3bf4f93843e572e38bd1.tar.gz archiva-e0ecff38ea3e9d4f6c9b3bf4f93843e572e38bd1.zip |
simplify code and better variable name
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1443526 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-webdav')
-rw-r--r-- | archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java index 342b4ce52..a2b7efec0 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java @@ -87,6 +87,7 @@ import org.codehaus.plexus.digest.Digester; import org.codehaus.plexus.digest.DigesterException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.slf4j.MarkerFactory; import org.springframework.context.ApplicationContext; import org.springframework.stereotype.Service; @@ -108,7 +109,7 @@ import java.util.Set; /** * */ -@Service ("davResourceFactory#archiva") +@Service("davResourceFactory#archiva") public class ArchivaDavResourceFactory implements DavResourceFactory, Auditable { @@ -139,7 +140,7 @@ public class ArchivaDavResourceFactory * */ @Inject - @Named (value = "repositoryProxyConnectors#default") + @Named(value = "repositoryProxyConnectors#default") private RepositoryProxyConnectors connectors; /** @@ -169,7 +170,7 @@ public class ArchivaDavResourceFactory * */ @Inject - @Named (value = "httpAuthenticator#basic") + @Named(value = "httpAuthenticator#basic") private HttpAuthenticator httpAuth; @Inject @@ -205,7 +206,7 @@ public class ArchivaDavResourceFactory * */ @Inject - @Named (value = "archivaTaskScheduler#repository") + @Named(value = "archivaTaskScheduler#repository") private RepositoryArchivaTaskScheduler scheduler; private ApplicationContext applicationContext; @@ -1181,11 +1182,14 @@ public class ArchivaDavResourceFactory if ( System.currentTimeMillis() - tmp.getCreationTime() > ( indexMerger.getGroupMergedIndexTtl() * 60 * 1000 ) ) { - log.debug( "tmp group index is too old so delete it" ); + log.debug( MarkerFactory.getDetachedMarker( "group.merged.index" ), + "tmp group index '{}' is too old so delete it", groupId ); indexMerger.cleanTemporaryGroupIndex( tmp ); } else { + log.debug( MarkerFactory.getDetachedMarker( "group.merged.index" ), + "merged index for group '{}' found in cache", groupId ); return tmp.getDirectory(); } } |