3 # Copyright 2017 Huawei Technologies Co., Ltd.
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
21 for line in fileinput.input():
23 isGroupRepo = subprocess.call("grep -s 'Group repo' {}/README.md > /dev/null".format(repo), shell=True) == 0
25 pompaths = os.popen("./ls-top-poms.sh {}".format(repo)).readlines()
26 for pompath in pompaths:
27 pompath = pompath.strip()
28 project = repo.replace("/", "_")
30 project += "_" + pompath.replace("/", "_")
31 print " - '{}':".format(project)
32 print " repo: '{}'".format(repo)
34 print " pom: '{}/pom.xml'".format(pompath)
36 print " pom: 'pom.xml'"