Fix multiple fbs code generation failure (#6365)

This commit is contained in:
Bruno ZIKI Kongawi
2021-01-04 13:29:32 -08:00
committed by GitHub
parent 82836a62be
commit 0168178a17

View File

@@ -48,7 +48,11 @@ android {
standardOutput = new ByteArrayOutputStream()
errorOutput = new ByteArrayOutputStream()
commandLine 'flatc', '-o', outputCppDir, '--cpp', "${fbsFiles.join(" ")}"
def commandLineArgs = ['flatc', '-o', outputCppDir, '--cpp']
fbsFiles.forEach{
commandLineArgs.add(it.path)
}
commandLine commandLineArgs
doFirst {
delete "$outputCppDir/"
@@ -70,7 +74,11 @@ android {
standardOutput = new ByteArrayOutputStream()
errorOutput = new ByteArrayOutputStream()
commandLine 'flatc', '-o', outputKotlinDir, '--kotlin', "${fbsFiles.join(" ")}"
def commandLineArgs = ['flatc', '-o', outputKotlinDir, '--kotlin']
fbsFiles.forEach{
commandLineArgs.add(it.path)
}
commandLine commandLineArgs
doFirst {
delete "$outputKotlinDir/"