【问题标题】:Ant stopped working in EclipseAnt 在 Eclipse 中停止工作
【发布时间】:2015-06-12 10:44:57
【问题描述】:

我的Ant 工作正常,直到今天,今天我安装了TestNG 插件,重启后Ant 不存在。 我在 Eclipse Preferences 中看不到选项,也看不到 Ant 视图。

我也尝试安装最新的Ant-Ivy 插件,但没有成功。

谁能帮帮我?

我正在使用 Eclipse Mars 和 JDK 1.7。

我能够从外部 ANT 但不能从 Eclipse 运行构建文件。

【问题讨论】:

    标签: java eclipse ant configuration


    【解决方案1】:

    作为一种解决方法,我能够从外部 ANT 运行构建文件,但不能从 Eclipse 运行。

    【讨论】:

      【解决方案2】:

      检查您的偏好:
      General | Editors | File Associations

      Ant | Runtime
      也许您的问题与eclipse bug 相关!?
      workaround using a symbolic 链接工作正常。

      【讨论】:

      • 我需要在文件关联中检查什么?同样如问题所述,Ant 在首选项中不可见。
      • @Garry 文件关联因为“.. 其中构建文件显示为普通 XML 文件”所以在我看来它与 ant 编辑器无关。没有蚂蚁偏好了?,好吧,你的问题没有得到。 ErrorLog 是否查看任何有用的条目?
      • 很多错误...."org.eclipse.swt.SWTException: 无法执行 runnable (java.lang.IllegalArgumentException: 小部件有错误的父级)"....无法解析插件-in“平台:/plugin/org.eclipse.jdt.ui/icons/full/eview16/source.gif”
      • @Garry 是否有 eclipse ant 插件 => org.eclipse.ant... 的条目?测试卸载Testng插件后蚂蚁是否重新出现,如果是,您可能会在这里打开一个问题=> github.com/cbeust/testng-eclipse/issues
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-09-27
      • 2016-12-03
      • 2015-09-12
      相关资源
      最近更新 更多