Ray Milkey
Committed by Gerrit Code Review

Allow OAR file rule to use non-OSGI jars

Change-Id: If2a82bdb5b217270ca02760f1c6cfc6f8f0dc7da
...@@ -11,7 +11,10 @@ def generateOar(output, files=[]): ...@@ -11,7 +11,10 @@ def generateOar(output, files=[]):
11 if mvnCoords == 'NONE': 11 if mvnCoords == 'NONE':
12 dest = filename 12 dest = filename
13 else: 13 else:
14 - groupId, artifactId, version = mvnCoords.split(':') 14 + parts = mvnCoords.split(':')
15 + if len(parts) > 3:
16 + parts.insert(2, parts.pop()) # move version to the 3rd position
17 + groupId, artifactId, version = parts[0:3]
15 groupId = groupId.replace('.', '/') 18 groupId = groupId.replace('.', '/')
16 extension = filename.split('.')[-1] 19 extension = filename.split('.')[-1]
17 if extension == 'jar': 20 if extension == 'jar':
......