Proper module name: HACK

This commit is contained in:
Michael Bogdanov
2015-07-30 11:35:54 +03:00
parent 42d46853c7
commit 65308d6aaf
@@ -84,7 +84,10 @@ public class ClassFileFactory implements OutputFileCollection {
}
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);
for (PackageCodegen codegen : values) {
codegen.getFacades().serialize(moduleMapping);