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

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

问题描述

我有我的项目的build.xml,但即使是这小块代码

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

已编辑:感谢Peter的Loron问题我检查了工作区日志文件MyWorkspace / .metadata / .log
在那里我看到错误消息我googled它发现,这发生,因为我的Eclipse的位置改变,但路径到ANT瓶子仍旧。
修复,你必须去首选项 - > 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.

推荐答案

编辑:感谢Peter的Loron问题我检查了工作区日志文件MyWorkspace / .metadata /。 log我看到错误消息我googled它,发现这种情况发生,因为我的Eclipse的位置改变了,但路径到ANT 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修复你必须去首选项 - > Ant->运行时并单击恢复默认它会提取新的jar位置并警告你缺少tools.jar,copy它从某处,并将它放在其他蚂蚁罐的同一文件夹。

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天全站免登陆