mirror of https://github.com/apache/ant-ivy
FIX: Ivy buildnumber task does not find artifact in Sonatype Nexus repo (IVY-1069)
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@783144 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
afc1dbf04e
commit
ebb65f0dc2
|
|
@ -89,6 +89,7 @@ for detailed view of each issue, please consult http://issues.apache.org/jira/br
|
|||
=====================================
|
||||
- IMPROVEMENT: Pre and post retrieve artifact events (IVY-1084)
|
||||
|
||||
- FIX: Ivy buildnumber task does not find artifact in Sonatype Nexus repo (IVY-1069)
|
||||
- FIX: Publish with SSH (sftp or ssh) prevents enclosing java process to terminate (IVY-1075)
|
||||
- FIX: Ibiblio resolver throws IndexOutOfBoundsException when using snapshot versions with usepoms='false' (IVY-1028)
|
||||
- FIX: Wrong BuildException messages (findmodules) (IVY-1056)
|
||||
|
|
|
|||
|
|
@ -206,6 +206,11 @@ public final class IvyPatternHelper {
|
|||
}
|
||||
|
||||
public static String substituteTokens(String pattern, Map tokens) {
|
||||
Map tokensCopy = new HashMap(tokens);
|
||||
if (tokensCopy.containsKey(ORGANISATION_KEY) && !tokensCopy.containsKey(ORGANISATION_KEY2)) {
|
||||
tokensCopy.put(ORGANISATION_KEY2, tokensCopy.get(ORGANISATION_KEY));
|
||||
}
|
||||
|
||||
StringBuffer buffer = new StringBuffer();
|
||||
|
||||
char[] chars = pattern.toCharArray();
|
||||
|
|
@ -265,7 +270,7 @@ public final class IvyPatternHelper {
|
|||
}
|
||||
|
||||
String token = tokenBuffer.toString();
|
||||
Object tokenValue = tokens.get(token);
|
||||
Object tokenValue = tokensCopy.get(token);
|
||||
String value = (tokenValue == null) ? null : tokenValue.toString();
|
||||
|
||||
if (insideOptionalPart) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue