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>
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 .log
file 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]
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:
- right click on build.xml
Run As
->Ant Build...
-> Select the "JRE
" tab,- check "
Run in the same JRE as the workspace
"...
and it works as before...
It is clearly a regression from previous version...