Eclipse v4.7.1a:蚂蚁构建损坏:启动配置< build.file>引用不存在的项目<容器项目> [英] Eclipse v4.7.1a: ant build broken: Launch configuration <build.file> references non-existing project <container project>

查看:175
本文介绍了Eclipse v4.7.1a:蚂蚁构建损坏:启动配置< build.file>引用不存在的项目<容器项目>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看来,由于Eclipse v4.7.1a(全新安装),因此不再有可能执行任何ant构建. 每次失败均显示以下消息:

It seems that since eclipse v4.7.1a (fresh install), it is no more possible to execute any ant build. Each time it fails with the following message:

Launch configuration <name of build file> references non-existing project <name of the containing project>

我们已经用许多不同的配置(eclipse-jee,eclipse-rcp ...)对它进行了测试,每次都使用新的eclipse v4.7.1a安装.
经过进一步调查,只有当build.xml文件不在"java"类型的项目下时,这种情况才会发生,这是我们所有工作区(30 + ...)的情况.
v4.7.0
一切正常 在.log文件中,我们可以看到:

We have tested it with many different configuration (eclipse-jee, eclipse-rcp ...), each time with a fresh eclipse v4.7.1a install.
After further investigation, this occurs only if the build.xml file in not under a "java" kind of project, which is the case for all of our workspaces (30+...).
Everything worked well with v4.7.0
In the .logfile we can see:

java.net.SocketException: Socket operation on nonsocket: configureBlocking
  at java.net.DualStackPlainSocketImpl.configureBlocking(Native Method)
  at java.net.DualStackPlainSocketImpl.socketAccept(Unknown Source)
  at java.net.AbstractPlainSocketImpl.accept(Unknown Source)
  at java.net.PlainSocketImpl.accept(Unknown Source)
  at java.net.ServerSocket.implAccept(Unknown Source)
  at java.net.ServerSocket.accept(Unknown Source)
  at org.eclipse.ant.internal.launching.launchConfigurations.RemoteAntBuildListener$ServerConnection.run(RemoteAntBuildListener.java:89)

!ENTRY org.eclipse.jdt.launching 4 107 2017-10-22 21:19:26.676
!MESSAGE Launch configuration org.titou10.jtb.build build.xml references non-existing project org.titou10.jtb.build.

[UPDATE]
build.xml文件是否在Java项目中.一切都像以前一样正常
如果build.xml文件在常规项目或EAR项目中(在我们的情况下),则该文件不起作用...
在这些情况下,似乎有一种方法可以使它起作用:

[UPDATE]
If the build.xml file is inside a Java project. Everyhting works fine as before
If the build.xml file is in a regular project or a EAR project (our case) it does not work...
It seems there is a way to make it work in those cases:

  1. 右键单击build.xml
  2. Run As-> Ant Build...->选择"JRE"选项卡
  3. 检查"Run in the same JRE as the workspace" ...
  1. right click on build.xml
  2. Run As->Ant Build...-> Select the "JRE" tab,
  3. check "Run in the same JRE as the workspace "...

它和以前一样工作...

and it works as before...

这显然是对先前版本的回归...

It is clearly a regression from previous version...

推荐答案

是的,是的,这是一个Eclipse错误:

Yes, you're right, it's an Eclipse bug:

Eclipse错误522581-无法从以下位置运行ant构建文件通用项目

该错误是在Oxygen.0(4.7.0)中引入的,可能是通过对内置Ant框架的更新造成的.计划于2017年12月20日针对该氧气的修复 计划用于Oxygen.2(4.7.2).

The bug was introduced in Oxygen.0 (4.7.0), probably by an update of the built-in Ant framework. A fix for this bug is scheduled for Oxygen.2 (4.7.2), December 20, 2017.

正如您在问题中已经描述的那样, 在与工作区相同的JRE中运行 可以用作解决方法.

As already described by yourself in the question, Run in the same JRE as the workspace can be used as a workaround.

这篇关于Eclipse v4.7.1a:蚂蚁构建损坏:启动配置&lt; build.file&gt;引用不存在的项目&lt;容器项目&gt;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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