Hey, do you know if is it possible to print the fi...
# build-tools
e
Hey, do you know if is it possible to print the final
kotlinc
shell command when compiling some kotlin sources with ant?
😱 2
m
looks line an Ant-specific problem… maybe the compiler task has some option to debug the command and its output?
u
It’s not possible right now, unless you want to attach a debugger to the Ant task, take sources from
ant/src
in the Kotlin repo, put a breakpoint in
KotlinCompilerBaseTask.execute
and inspect it live
But starting from 1.5-M1, it will be possible if you use
fork = true
for Kotlin Ant task (which is also supported since 1.5-M1: https://youtrack.jetbrains.com/issue/KT-44293), with
-verbose
e
@Matteo Mirk I hoped so
u
As I said, it is not possible right now, but will be possible starting from 1.5-M1, which is what the code you linked does (it’s in the
master
branch which is going to be 1.5-M1)
e
yeah, I just wanted to be sure it was the log you meant
any ETA for that 1.5?
I just got an idea.. I may modify the jar and use that..
should this work or?
u
Yes, it could work. Or you can build the Kotlin Ant task manually from the Kotlin master