Hi, I have many java projects using ant.
I starting try to convert to gradle.kts
My first step was import one build.xml to build.gradle.kts using ant.importBuild()
This working fine.
But when I try import 2 build.xml to gradle.kts all target with the same name not is imported.
ant.importBuild(“…/project1/build.xml”) { antTaskName →
“ant-p1-$antTaskName”
}
ant.importBuild(“…/project2/build.xml”) { antTaskName →
“ant-p2-$antTaskName”
}
Even though I changed all task name AntBuilder give me this message
Already defined in main or a previous import, ignore clean
Already defined in main or a previous import, ignore deploy
Clean and Deploy are targets commons between project 1 and project2
ant-p1-clean working fine, but ant-p2-clean not is imported
Important, rename target worked. The problem happen when compile gradle.kts
Can you help me?