How do I execute ant target programatically ?
已回答
I've gone through AntConfiguration and added an ant build file like below
val antConfig = AntConfiguration.getInstance(project)
val buildFile = antConfig.addBuildFile(localFileSystem.findFileByIoFile(File("build/testing.xml")))!!
请先登录再写评论。
com.intellij.lang.ant.config.impl.GlobalAntConfiguration#findTarget
then invoke com.intellij.lang.ant.config.AntBuildTarget#run