equal
deleted
inserted
replaced
61 }; |
61 }; |
62 |
62 |
63 // parse module-info.class |
63 // parse module-info.class |
64 ClassReader cr = new ClassReader(in); |
64 ClassReader cr = new ClassReader(in); |
65 cr.accept(cv, attrs, 0); |
65 cr.accept(cv, attrs, 0); |
66 return modTargets[0] != null && |
66 return modTargets[0] != null && modTargets[0].targetPlatform() != null; |
67 (modTargets[0].osName() != null || modTargets[0].osArch() != null); |
|
68 } |
67 } |
69 |
68 |
70 private static boolean hasModuleTarget(String modName) throws IOException { |
69 private static boolean hasModuleTarget(String modName) throws IOException { |
71 FileSystem fs = FileSystems.newFileSystem(URI.create("jrt:/"), |
70 FileSystem fs = FileSystems.newFileSystem(URI.create("jrt:/"), |
72 Collections.emptyMap()); |
71 Collections.emptyMap()); |