简体   繁体   中英

ant build java program could not find targets

I am maintaining a java program that is not mine. I used eclipse and I could build the program with Ant. I don't know very much about Ant. Everything was installed fine on my eclipse IDE and the build worked perfect till today. I didn't change anything, so I don't know why it doesn't work anymore.

When I look at the external Tools Configurations,I see that the targets are missing. I have the message "No targets could be determined for the build file". Previously I could select some targets. Does someone know how it come that the targets disappeared?

I fixed it by switching the eclipse workspace. I went to menu File->Switch Workspace->Other, and then I have selected the same workspace I was working with. Eclipse restarted and the error wasn't there anymore.

这对我有所帮助:从Ant视图中删除构建文件,然后再次添加。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM