Skip to content

Commit 8d849ea

Browse files
authored
throw error if no bindings.txt file was found (#840)
1 parent da57775 commit 8d849ea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

android-static-binding-generator/project/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,9 @@ task generateBindings() {
274274
inputs.dir (bindingsFile)
275275

276276
doFirst {
277+
if(!file(bindingsFileP).exists()) {
278+
throw new GradleException("No ${bindingsFileP} was found after runAstParser task was ran! Check to see if there are any .js files inside ${jsCodeDir}")
279+
}
277280
javaexec {
278281
main "-jar"
279282

0 commit comments

Comments
 (0)