Ant build scripts totally hangs, with no messages in console

。_饼干妹妹 提交于 2019-12-01 15:14:27

Edited: Thank to Peter's Loron question I checked workspace log file MyWorkspace/.metadata/.log There I saw error message I googled it and found that this happening because location of my Eclipse changed, but path to ANT jars remains old.

TO Fix that you have to go Preferences->Ant->Runtime and click Restore Default it will pickup new jar location and warn you about absence of tools.jar, copy it from somewhere and drop it in same folder where other ant jars.

Here is yet another possible fix:

  • Go to Preferences->Ant->Runtime
  • Classpath tab
  • Click Restore Defaults button.

That happened to fix the issue for me.

I'm using IBM RAD7 (which is based on Eclipse) and I was having exactly the same problem. After much fiddling I went to "External Tools" | JRE Tab | select "Run in same JRE", mine was set yo use the Webpshere JRE. Took a day to fix it! Nigel

Another quick thing to look for... Check your VM memory specs... I was messing around with low memory settings and it caused the same issues as above...

If you are running the script using "External Tools Configuration" you should also check the following:

Open "External Tools Configuration" and select the launcher that starts the Ant script. In the tab "Common" make sure that "Allocate console (necessary for input)" is checked!

In my case it was not checked and was the reason why no console output was visible.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!