mirror of https://github.com/apache/archiva.git
PR: MRM-43
Made the class method more general git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@373697 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fc03f60797
commit
c2713e0c4f
|
@ -43,8 +43,7 @@ public class ProxyConfiguration
|
||||||
private boolean browsable;
|
private boolean browsable;
|
||||||
|
|
||||||
private ArtifactRepository repoCache;
|
private ArtifactRepository repoCache;
|
||||||
|
private List repositories = new ArrayList();
|
||||||
private ArrayList repositories = new ArrayList();
|
|
||||||
|
|
||||||
public void setBrowsable( boolean browsable )
|
public void setBrowsable( boolean browsable )
|
||||||
{
|
{
|
||||||
|
@ -56,7 +55,7 @@ public class ProxyConfiguration
|
||||||
return browsable;
|
return browsable;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRepositoryCachePath( String repoCachePath )
|
public void setRepositoryCachePath( String repoCacheURL )
|
||||||
{
|
{
|
||||||
ArtifactRepositoryPolicy standardPolicy;
|
ArtifactRepositoryPolicy standardPolicy;
|
||||||
standardPolicy = new ArtifactRepositoryPolicy( true, ArtifactRepositoryPolicy.UPDATE_POLICY_ALWAYS,
|
standardPolicy = new ArtifactRepositoryPolicy( true, ArtifactRepositoryPolicy.UPDATE_POLICY_ALWAYS,
|
||||||
|
@ -64,7 +63,7 @@ public class ProxyConfiguration
|
||||||
|
|
||||||
ArtifactRepositoryLayout layout = new DefaultRepositoryLayout();
|
ArtifactRepositoryLayout layout = new DefaultRepositoryLayout();
|
||||||
|
|
||||||
repoCache = artifactRepositoryFactory.createArtifactRepository( "localCache", repoCachePath, layout,
|
repoCache = artifactRepositoryFactory.createArtifactRepository( "localCache", repoCacheURL, layout,
|
||||||
standardPolicy, standardPolicy );
|
standardPolicy, standardPolicy );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -88,7 +87,7 @@ public class ProxyConfiguration
|
||||||
return Collections.unmodifiableList( repositories );
|
return Collections.unmodifiableList( repositories );
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRepositories( ArrayList repositories )
|
public void setRepositories( List repositories )
|
||||||
{
|
{
|
||||||
this.repositories = repositories;
|
this.repositories = repositories;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue