| include_defs('//onos.defs') |
| base_path = get_base_path() |
| return ONOS_ARTIFACT_BASE + base_path.replace('/', '-') #TODO Unix-separator |
| group_id = ONOS_GROUP_ID, |
| yang_jar = name + '-yang' |
| args = { 'group':group_id, 'artifact':name, 'version':version } |
| cmd = 'java -jar $(location //lib:bndexe) wrap -o $OUT ' |
| cmd += '-b %(group)s.%(artifact)s ' % args |
| cmd += '-v ' + version.replace('-', '.') + ' ' |
| cmd += '$(location :%s) ' % yang_jar |
| cmd += ' >/dev/null 2>&1' |
| binary_jar = ':' + bnd_jar, |
| maven_coords = '%(group)s:%(artifact)s:%(version)s'%args, |