]> source.dussan.org Git - archiva.git/commitdiff
fix bean name for legacy repo
authorOlivier Lamy <olamy@apache.org>
Tue, 30 Oct 2012 14:41:09 +0000 (14:41 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 30 Oct 2012 14:41:09 +0000 (14:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1403721 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webdav/pom.xml
archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java

index 7c949713bd52a5ea5f64faae293e10757de2d69a..8477ed45ce589e7476676ff843a59502b0cd6e68 100644 (file)
               org.apache.archiva.scheduler*;version=${project.version},
               org.apache.archiva.security;version=${project.version},
               org.apache.archiva.proxy.model;version=${project.version},
+              org.apache.archiva.metadata.repository.storage;version=${project.version},
               org.apache.commons.io;version="[1.4,2)",
               org.apache.commons.lang;version="[2.4,3)",
               org.apache.jackrabbit.util;version="[1,3)",
index 0ae3c03fa31a151686e8d470779dd0d351e3933b..430a85a1ab8db3ebbde9cb97573bd4bca63c152b 100644 (file)
@@ -109,7 +109,7 @@ import java.util.Set;
 /**
  *
  */
-@Service ( "davResourceFactory#archiva" )
+@Service ("davResourceFactory#archiva")
 public class ArchivaDavResourceFactory
     implements DavResourceFactory, Auditable
 {
@@ -142,7 +142,7 @@ public class ArchivaDavResourceFactory
      *
      */
     @Inject
-    @Named ( value = "repositoryProxyConnectors#default" )
+    @Named (value = "repositoryProxyConnectors#default")
     private RepositoryProxyConnectors connectors;
 
     /**
@@ -172,7 +172,7 @@ public class ArchivaDavResourceFactory
      *
      */
     @Inject
-    @Named ( value = "httpAuthenticator#basic" )
+    @Named (value = "httpAuthenticator#basic")
     private HttpAuthenticator httpAuth;
 
     @Inject
@@ -208,7 +208,7 @@ public class ArchivaDavResourceFactory
      *
      */
     @Inject
-    @Named ( value = "archivaTaskScheduler#repository" )
+    @Named (value = "archivaTaskScheduler#repository")
     private RepositoryArchivaTaskScheduler scheduler;
 
     private ApplicationContext applicationContext;
@@ -729,7 +729,8 @@ public class ArchivaDavResourceFactory
             if ( artifact != null )
             {
                 String repositoryLayout = managedRepository.getRepository().getLayout();
-                if ( StringUtils.equalsIgnoreCase( "default", repositoryLayout ) )
+                if ( StringUtils.equalsIgnoreCase( "default", repositoryLayout ) || StringUtils.equalsIgnoreCase(
+                    "legacy", repositoryLayout ) )
                 {
                     repositoryLayout = "maven2";
                 }