e

    elect

    1 year ago
    Hey, do you know if is it possible to print the final
    kotlinc
    shell command when compiling some kotlin sources with ant?
    m

    Matteo Mirk

    1 year ago
    looks line an Ant-specific problem… maybe the compiler task has some option to debug the command and its output?
    udalov

    udalov

    1 year ago
    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

    elect

    1 year ago
    @Matteo Mirk I hoped so
    udalov

    udalov

    1 year ago
    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

    elect

    1 year ago
    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?
    udalov

    udalov

    1 year ago
    Yes, it could work. Or you can build the Kotlin Ant task manually from the Kotlin master