[
http://issues.ops4j.org/browse/PAXURL-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14060#action_14060
]
Stephane Chomat commented on PAXURL-115:
----------------------------------------
You can configure mirror with a aether session like it.
For example we are a map <id pattern to mirror url >.
{code:title=configure mirror|borderStyle=solid}
DefaultMirrorSelector mirrorSelector = (DefaultMirrorSelector)
session.getMirrorSelector();
if (m_config != null) {
// configure mirror
Map<String, String> mirrors = m_config.getMirrors();
int i = 1;
for (String mirrorOf : mirrors.keySet()) {
String url = mirrors.get(mirrorOf);
// type can be null in this implementation
(1.11)
mirrorSelector.add("mirrorId_" + i, url, null,
false, mirrorOf,
"*");
i++;
}
}
{code}
> Configure aether module wich setting information for proxies and mirrors.
> -------------------------------------------------------------------------
>
> Key: PAXURL-115
> URL: http://issues.ops4j.org/browse/PAXURL-115
> Project: Pax URL
> Issue Type: Improvement
> Components: aether
> Reporter: Stephane Chomat
> Assignee: Stephane Chomat
> Fix For: 1.2.6
>
>
> The setting.xml can have some proxy or/and mirror informations and ather
> library support it. But the handler aether don't use it to configure the
> aether session.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.ops4j.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general