mirror of https://github.com/apache/archiva.git
add spring aliases to prevent hackish code
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1403724 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
571c152ba6
commit
ebaed8593c
|
@ -729,12 +729,7 @@ public class ArchivaDavResourceFactory
|
|||
if ( artifact != null )
|
||||
{
|
||||
String repositoryLayout = managedRepository.getRepository().getLayout();
|
||||
// FIXME we could prevent that with renaming bean repositoryStorage#maven2 to repositoryStorage#default
|
||||
if ( StringUtils.equalsIgnoreCase( "default", repositoryLayout ) || StringUtils.equalsIgnoreCase(
|
||||
"legacy", repositoryLayout ) )
|
||||
{
|
||||
repositoryLayout = "maven2";
|
||||
}
|
||||
|
||||
RepositoryStorage repositoryStorage =
|
||||
this.applicationContext.getBean( "repositoryStorage#" + repositoryLayout, RepositoryStorage.class );
|
||||
repositoryStorage.applyServerSideRelocation( managedRepository, artifact );
|
||||
|
|
|
@ -38,4 +38,7 @@
|
|||
</constructor-arg>
|
||||
</bean>
|
||||
|
||||
<alias name="repositoryStorage#maven2" alias="repositoryStorage#default"/>
|
||||
<alias name="repositoryStorage#maven2" alias="repositoryStorage#legacy"/>
|
||||
|
||||
</beans>
|
Loading…
Reference in New Issue