Introduce extension for built-ins serialization, drop .kotlin_class_names

This commit is contained in:
Alexander Udalov
2014-12-01 13:40:26 +03:00
parent f19aa2290c
commit 9a86318908
11 changed files with 248 additions and 79 deletions
@@ -34,14 +34,14 @@ fun main(args: Array<String>) {
try {
checkVersion()
val commonProto = "core/serialization/src/descriptors.proto"
val javaProto = "core/serialization.java/src/java_descriptors.proto"
execProtoc(commonProto, "core/serialization/src")
execProtoc(javaProto, "core/serialization.java/src")
modifyAndExecProtoc(commonProto, "compiler/tests")
modifyAndExecProtoc(javaProto, "compiler/tests")
for ((protoPath, outPath) in listOf(
Pair("core/serialization/src/descriptors.proto", "core/serialization/src"),
Pair("core/serialization/src/builtins.proto", "core/serialization/src"),
Pair("core/serialization.java/src/java_descriptors.proto", "core/serialization.java/src")
)) {
execProtoc(protoPath, outPath)
modifyAndExecProtoc(protoPath, "compiler/tests")
}
}
catch (e: Throwable) {
e.printStackTrace()