Ant构建脚本完全挂起,在控制台没有消息 [英] Ant build scripts totally hangs, with no messages in console

查看:106
本文介绍了Ant构建脚本完全挂起,在控制台没有消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的build.xml为我的项目,但即使是这一小片code的

I have build.xml for my project, but even this small piece of code

  <target name="init">
    <tstamp/>
    <!-- Create the build directory structure used by compile -->
    <mkdir dir="${build}"/>
  </target>

它不运行

控制台是空的,但过程是积极的。我仍然可以终止它在STOP按钮

Console is empty but process is active. I still can terminate it over STOP button

在同一时间,我无法调试它,以及在控制台同样的东西主动的过程没有输出,我可以永远等待!任何想法?

In same time I cannot debug it as well, same stuff active process no output in console and I can wait forever! Any ideas?


  • JDK 1.6.0_14

  • 的Eclipse 3.5.1

编辑的:感谢给我检查的工作空间日志文件彼得Loron问题MyWorkspace / .metadata / .LOG
在那里,我看到了错误信息我GOOGLE了一下,发现这种情况发生,因为我的Eclipse的位置变了,但路径ANT罐子依然岁。
为了解决这个问题,你必须去preferences-> Ant->运行,并单击恢复默认它将皮卡新的jar位置,并警告你没有tools.jar来,从某处复制它,在同一个文件夹拖放在其他蚂蚁罐子。

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.

推荐答案

编辑:谢谢给我检查了彼得的Loron问题工作空间日志文件MyWorkspace / .metadata / .LOG在那里我看见我用Google搜索了一下,发现错误信息,这是因为发生我的Eclipse的位置变了,但路径ANT罐子依然岁。

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.

为了解决这个问题,你必须去preferences-> Ant->运行,点击恢复默认它将皮卡新的jar位置,并警告你没有tools.jar来,从某处复制它,在同一个文件夹拖放在其他蚂蚁的罐子。

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.

这篇关于Ant构建脚本完全挂起,在控制台没有消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆