Nick Boldt created JBIDE-22158:
----------------------------------
Summary: bzira needs to support multiple regex matches for Platform, JSDT,
WTP, m2e, etc.
Key: JBIDE-22158
URL:
https://issues.jboss.org/browse/JBIDE-22158
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: build
Affects Versions: 4.4.0.Alpha1
Reporter: Nick Boldt
Currently, bzira supports two ways to define mappings:
a) hardcoded list:
{code}
def map_linuxtools(version):
versions = {
"4.2.1" : "Mars.2 (4.5)",
"4.2.0" : "Mars.2 (4.5)",
"4.1.0" : "Mars.1 (4.5)",
"4.0.0" : "Mars (4.5)",
"5.0.0" : "Neon (4.6)",
"---" : NO_VERSION
}
return versions.get(version, None)
{code}
b) regex mapping:
{code}
"Platform" : (lambda version: re.sub(r"4.6(.*)", r"Neon
(4.6)\1", version)),
{code}
But for Platform, we need two sets of mappings for 4.6 (Neon) and 4.7 (Oxygen).
Here's a BZ for which we have a target milestone of 4.7:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=484347
and here's currently the error that bzira reports:
{code}
[DEBUG] 484347 - [JFace] MessageDialog should use Link instead of Text [Platform, UI,
[4.7]] {20160323T17:24:18} (19 days, 4:16:34.025318) ->
https://bugs.eclipse.org/484347
[DEBUG] Mapper: Platform / 4.7 -> 4.7
[ERROR] Version '4.7' mapped from '4.7' not found in ERT. Please create it
or fix the mapping. Bug: #484347 NEW - Platform-UI-Inbox(a)eclipse.org - [JFace]
MessageDialog should use Link instead of Text
Query:
https://issues.jboss.org/rest/api/2/search?jql=project+%3D+ERT+and+summar...
[INFO]
https://bugs.eclipse.org/484347 already proxied as
https://issues.jboss.org/browse/ERT-33; checking if something needs updating/syncing.
{code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)