|
10 | 10 | os.makedirs(dest) |
11 | 11 | modules = getmodules(root) |
12 | 12 | for module in modules: |
13 | | - print(module) |
14 | | - jarfile = os.path.join(root,module,"build/libs/{0}.jar".format(module)) |
15 | | - if os.path.isfile(jarfile) : |
16 | | - destfile = os.path.join(dest, "{0}.jar".format(module)) |
17 | | - copyfile(jarfile, destfile) |
18 | | - else: |
19 | | - aarfile = os.path.join(root,module,"build/outputs/aar/{0}-release.aar".format(module)) |
20 | | - if os.path.isfile(aarfile) : |
21 | | - destfile = os.path.join(dest, "{0}.aar".format(module)) |
22 | | - copyfile(aarfile, destfile) |
23 | | - print("copied {0} to {1}".format(aarfile, destfile)) |
| 13 | + if 'test' not in module : |
| 14 | + print(module) |
| 15 | + jarfile = os.path.join(root,module,"build/libs/{0}.jar".format(module)) |
| 16 | + if os.path.isfile(jarfile) : |
| 17 | + destfile = os.path.join(dest, "{0}.jar".format(module)) |
| 18 | + copyfile(jarfile, destfile) |
24 | 19 | else: |
25 | | - print("Did not find build result for {0}".format(module)) |
26 | | - exit(1) |
27 | | - |
| 20 | + aarfile = os.path.join(root,module,"build/outputs/aar/{0}-release.aar".format(module)) |
| 21 | + if os.path.isfile(aarfile) : |
| 22 | + destfile = os.path.join(dest, "{0}.aar".format(module)) |
| 23 | + copyfile(aarfile, destfile) |
| 24 | + print("copied {0} to {1}".format(aarfile, destfile)) |
| 25 | + else: |
| 26 | + print("Did not find build result for {0}".format(module)) |
| 27 | + exit(1) |
0 commit comments