Fix entity stubs being generated despite they already exist in kotlin source set
This commit is contained in:
parent
e7d5576269
commit
3dc596252d
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ class EntitiesGenerator(
|
|||
val name =
|
||||
CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, entity.get("name").toString())!! + "Entity"
|
||||
|
||||
val filePathRelativeToSourceRoot = "./${BLOCK_PACKAGE.replace(".", "/")}/$name.kt"
|
||||
val filePathRelativeToSourceRoot = "./${ENTITY_PACKAGE.replace(".", "/")}/$name.kt"
|
||||
if (sourcesDir.resolve(filePathRelativeToSourceRoot).exists()) continue
|
||||
|
||||
val type = TypeSpec.classBuilder(name)
|
||||
|
|
Reference in a new issue