Don't try to exhaustively anticipate all generated header names

When JNI headers for a given class, each nested class will end up with
its own additional header.  But I don't want to try to parse nested
class details out of the Java source files just so we can determine
exactly which headers will be created.  Instead, simply treat the
entire header destination directory as the output of this task.
This commit is contained in:
Ben Liblit 2018-03-31 18:04:00 -05:00
parent 36fe02d71c
commit 4840966807
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ task generateJniHeaders(type: Exec, dependsOn: [testClasses, ':com.ibm.wala.cast
headerDir = "$buildDir/include"
}
inputs.files files(qualifiedClasses.collect { "$buildDir/${it.replace('.', '/')}.class" })
outputs.files files(qualifiedClasses.collect { "$headerDir/${it.replace('.', '_')}.h" })
outputs.dir headerDir
outputs.cacheIf { true }
// javah command to generate headers