mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
Merge pull request #265 from DevCharly/property-getter-fix
BuildScriptUtil.runBuildScriptJarFile(): do not invoke static getter that expects parameters
This commit is contained in:
commit
eebaa4772f
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ class BuildScriptUtil @Inject constructor(val plugins: Plugins, val files: KFile
|
|||
}.forEach { cls ->
|
||||
cls.methods.forEach { method ->
|
||||
// Invoke vals and see if they return a Project
|
||||
if (method.name.startsWith("get") && Modifier.isStatic(method.modifiers)) {
|
||||
if (method.name.startsWith("get") && Modifier.isStatic(method.modifiers) && method.parameterCount == 0) {
|
||||
try {
|
||||
val r = method.invoke(null)
|
||||
if (r is Project) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue