Proper module name: HACK
This commit is contained in:
@@ -84,7 +84,10 @@ public class ClassFileFactory implements OutputFileCollection {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void writeModuleMappings(Collection<PackageCodegen> values) {
|
private void writeModuleMappings(Collection<PackageCodegen> values) {
|
||||||
String outputFilePath = "META-INF/module.mapping";
|
String moduleName = state.getModule().getName().asString();
|
||||||
|
moduleName = moduleName.replaceAll(">", "").replaceAll("<", "");
|
||||||
|
moduleName = moduleName.substring(moduleName.lastIndexOf(" ") + 1);
|
||||||
|
String outputFilePath = "META-INF/" + moduleName + ".kotlin_module";
|
||||||
final StringWriter moduleMapping = new StringWriter(1024);
|
final StringWriter moduleMapping = new StringWriter(1024);
|
||||||
for (PackageCodegen codegen : values) {
|
for (PackageCodegen codegen : values) {
|
||||||
codegen.getFacades().serialize(moduleMapping);
|
codegen.getFacades().serialize(moduleMapping);
|
||||||
|
|||||||
Reference in New Issue
Block a user