mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-26 21:35:46 +00:00
Add APT_DEBUG flag to allow debugging the Javac process and annotation processors
This commit is contained in:
parent
0061e8922d
commit
a4ba87bc65
@ -470,6 +470,10 @@ tasks.withType(JavaCompile).configureEach { task ->
|
|||||||
// working directory and prevents from using a relative path to locate a project file.
|
// working directory and prevents from using a relative path to locate a project file.
|
||||||
// Using a CommandLineArgumentProvider allows build cache hits when the build cache is relocated.
|
// Using a CommandLineArgumentProvider allows build cache hits when the build cache is relocated.
|
||||||
task.options.compilerArgumentProviders.add(new CompilerStubsArgumentProvider(stubsDir: new File(project.rootDir, "checkerstubs")))
|
task.options.compilerArgumentProviders.add(new CompilerStubsArgumentProvider(stubsDir: new File(project.rootDir, "checkerstubs")))
|
||||||
|
|
||||||
|
if (System.getProperty('APT_DEBUG', 'false') == 'true') {
|
||||||
|
task.options.forkOptions.jvmArgs += ['-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=9099']
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
checkerFramework {
|
checkerFramework {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user