JDK 11: update cycle finder rule to work with JDK 11.
Change on 2019/05/13 by antoniocortes
@@ -51,7 +51,10 @@ def Main():
module_info = open(args.output, "w")
module_info.write("module {} {{\n".format(args.name))
for subdir, _, files in os.walk(root):
- if any(f.endswith(".class") for f in files):
+ if any(
+ f.endswith(".class")
+ for f in files
+ if not f.endswith("package-info.class")):
package = subdir[len(root) + 1:] # "+ 1" to remove the "/"
package = package.replace("/", ".")
module_info.write(" exports {};\n".format(package))
