It's `ignoreExitValue = true`. For tasks it's oftentimes possible to omit the `=`.
PS: Please always provide the exact error message and stack trace.
Is there a technical limitation to why the interface cannot be consistent?
Task classes are generically enhanced at runtime (via code generation) for several reasons. There is no such mechanism for methods.