[英]ant build java program could not find targets
I am maintaining a java program that is not mine. 我正在维护一个不是我的Java程序。 I used eclipse and I could build the program with Ant.
我使用了eclipse,可以用Ant构建程序。 I don't know very much about Ant.
我对蚂蚁不太了解。 Everything was installed fine on my eclipse IDE and the build worked perfect till today.
一切在我的Eclipse IDE上都安装得很好,并且该构建到目前为止一直运行良好。 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. 我通过切换Eclipse工作区来修复它。 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.
Eclipse重新启动,错误不再存在。
这对我有所帮助:从Ant视图中删除构建文件,然后再次添加。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.