Slackbot
05/02/2023, 12:15 AMThomas Broyer
05/02/2023, 7:32 AMThomas Broyer
05/02/2023, 7:40 AMjavax.tool.JavaCompiler (possibly through compile-testing) in a test, and then debug the test process: https://docs.gradle.org/current/userguide/java_testing.html#sec:debugging_java_tests
• run Gradle with --debug, find the "Compiler arguments" line in the output, then run the equivalent javac command (with Gradle out of the equation), passing the -agent argument as an additional -J argument (javac -J-agent:…), and transforming other JVM arguments to prefix them with -J the same way (you could also of course pass an -agent argument to the Gradle compilation task's jvmArgs and force Gradle to fork a compiler daemon)Mike Wacker
05/09/2023, 1:47 AM