Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Ant in Eclipse 3.1
Ant in Eclipse 3.1 [message #208230] Wed, 29 June 2005 19:00 Go to next message
Eclipse UserFriend
Originally posted by: ray.allthisisthat.com

I installed the new Eclipse 3.1, and have a problem with Ant. I don't
know if it is a twitch in my installation, or a wider problem. Launching
a build file doesn't work, and no output goes anywhere. I was able to
create a "Builder" which runs my Ant build file as part of the Eclipse
build process, and the output goes to the Console View, and everything is
properly executed; but when I launch the Ant Build from the Ant View or
from External Tools, nothing much happens. The only indication that there
is any activity at all is a "jvm terminated" message across the top of the
Console View window. I've been using Eclipse for a couple years, and this
is definitely new behavior.

Any advice?

Thanks,
Ray Clough
ray@allthisisthat.com
Re: Ant in Eclipse 3.1 [message #208238 is a reply to message #208230] Wed, 29 June 2005 19:05 Go to previous messageGo to next message
Eclipse UserFriend
Check that your Ant runtime classpath is correctly pointing to the Ant 1.6.5
plugin.
Window>Preferences>Ant Runtime>Classpath
Easiest way to fix is to hit Restore defaults.

We have poor error messages etc. when this fails to get migrated.
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=101224

HTH
Darins

"Ray Clough" <ray@allthisisthat.com> wrote in message
news:b50c448aba20220631f8249c38d180aa$1@www.eclipse.org...
> I installed the new Eclipse 3.1, and have a problem with Ant. I don't
> know if it is a twitch in my installation, or a wider problem. Launching
> a build file doesn't work, and no output goes anywhere. I was able to
> create a "Builder" which runs my Ant build file as part of the Eclipse
> build process, and the output goes to the Console View, and everything is
> properly executed; but when I launch the Ant Build from the Ant View or
> from External Tools, nothing much happens. The only indication that there
> is any activity at all is a "jvm terminated" message across the top of the
> Console View window. I've been using Eclipse for a couple years, and this
> is definitely new behavior.
>
> Any advice?
>
> Thanks,
> Ray Clough
> ray@allthisisthat.com
>
>
Re: Ant in Eclipse 3.1 [message #208277 is a reply to message #208238] Thu, 30 June 2005 12:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ray.allthisisthat.com

Yes, it points to the Ant 1.6.5 plugin included with Eclipse 3.1. By the
way, I'm using jdk1.5.0_04.
Re: Ant in Eclipse 3.1 [message #208284 is a reply to message #208277] Thu, 30 June 2005 12:38 Go to previous messageGo to next message
Eclipse UserFriend
Also ensure to check the individual launch configurations classpath tab.
Run Ant... > Classpath

HTH
Darins

"Ray Clough" <ray@allthisisthat.com> wrote in message
news:34116c67bbac8bca8defcd987fa7bff0$1@www.eclipse.org...
> Yes, it points to the Ant 1.6.5 plugin included with Eclipse 3.1. By the
> way, I'm using jdk1.5.0_04.
>
Re: Ant in Eclipse 3.1 [message #208292 is a reply to message #208284] Thu, 30 June 2005 15:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ray.allthisisthat.com

Everything points to the Ant plugin version which accompanies Eclipse 3.1.
I do not even have any other ant versions on the box any more.
Re: Ant in Eclipse 3.1 [message #208300 is a reply to message #208292] Thu, 30 June 2005 16:01 Go to previous messageGo to next message
Eclipse UserFriend
If you create a brand new buildfile and attempt to run it, is this
successful?

Darins

"Ray Clough" <ray@allthisisthat.com> wrote in message
news:8b98781998c282896f465f382d592fba$1@www.eclipse.org...
> Everything points to the Ant plugin version which accompanies Eclipse 3.1.
> I do not even have any other ant versions on the box any more.
>
Re: Ant in Eclipse 3.1 [message #208352 is a reply to message #208300] Fri, 01 July 2005 06:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ray.allthisisthat.com

I created a "Greetings Earth" project (similar in many respects to "Hello
World"), and made a build file for it. When I run Ant, all I see in the
console view is a message:

"<terminated> GreetingEarth build.xml [Ant Build]
C:\JavaSystem\jdk1.5.0_04\bin\javaw.exe"

This message appears in the window's title bar (across the top), and the
messages I expect to see echoed in the window do not appear.

I deleted Eclipse from my system and reloaded it. Same behavior. Any
ideas on what to try next?

Thanks,

Ray Clough
ray@allthisisthat.com
Re: Ant in Eclipse 3.1 [message #208374 is a reply to message #208352] Fri, 01 July 2005 11:03 Go to previous messageGo to next message
Eclipse UserFriend
Is there indication of problems in the .log file?

"Ray Clough" <ray@allthisisthat.com> wrote in message
news:5b9b457a708d4832e70ab795edb5c24b$1@www.eclipse.org...
>I created a "Greetings Earth" project (similar in many respects to "Hello
>World"), and made a build file for it. When I run Ant, all I see in the
>console view is a message:
>
> "<terminated> GreetingEarth build.xml [Ant Build]
> C:\JavaSystem\jdk1.5.0_04\bin\javaw.exe"
>
> This message appears in the window's title bar (across the top), and the
> messages I expect to see echoed in the window do not appear.
>
> I deleted Eclipse from my system and reloaded it. Same behavior. Any
> ideas on what to try next?
>
> Thanks,
>
> Ray Clough
> ray@allthisisthat.com
>
Re: Ant in Eclipse 3.1 [message #208402 is a reply to message #208374] Fri, 01 July 2005 11:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ray.allthisisthat.com

Every time I've tried to launch Ant, the log file contains this message:


!ENTRY org.eclipse.ant.ui 4 120 2005-07-01 08:54:59.814
!MESSAGE Error logged from Ant UI:
!STACK 0
java.net.SocketTimeoutException: Accept timed out
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
at java.net.ServerSocket.implAccept(ServerSocket.java:450)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at
org.eclipse.ant.internal.ui.launchConfigurations.RemoteAntBu ildListener$ServerConnection.run(RemoteAntBuildListener.java :97)
Re: Ant in Eclipse 3.1 [message #208426 is a reply to message #208402] Fri, 01 July 2005 12:30 Go to previous messageGo to next message
Eclipse UserFriend
Do you have any firewall restricting port access?

As a (temp) workaround, you can try running the Ant build in the same JRE as
Eclipse. See the JRE tab for your Ant launch configuration.

"Ray Clough" <ray@allthisisthat.com> wrote in message
news:926dfa96db591b434a0f7d1f00c1d155$1@www.eclipse.org...
> Every time I've tried to launch Ant, the log file contains this message:
>
>
> !ENTRY org.eclipse.ant.ui 4 120 2005-07-01 08:54:59.814
> !MESSAGE Error logged from Ant UI:
> !STACK 0
> java.net.SocketTimeoutException: Accept timed out
> at java.net.PlainSocketImpl.socketAccept(Native Method)
> at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
> at java.net.ServerSocket.implAccept(ServerSocket.java:450)
> at java.net.ServerSocket.accept(ServerSocket.java:421)
> at
>
org.eclipse.ant.internal.ui.launchConfigurations.RemoteAntBu ildListener$Serv
erConnection.run(RemoteAntBuildListener.java:97)
>
>
Re: Ant in Eclipse 3.1 [message #208434 is a reply to message #208426] Fri, 01 July 2005 13:06 Go to previous message
Eclipse UserFriend
Originally posted by: ray.allthisisthat.com

I asked our IT guys about port restrictions, and they say that there is no
firewall or other restriction on the local machine. Of course, the
corporate perimeter is protected, but not the local machine.

Why does the ant runner use sockets anyway? Seems like a fairly unusual
architecture, but I know nothing about Ant's or Eclipse's architecture.

Two days ago I was using Eclipse 3.0 with it's internal Ant plugin which
used Ant 1.6.2. Everything worked fine. Now, it is very problematic.
Previous Topic:same package in different projects
Next Topic:Plug in dependency problem?
Goto Forum:
  


Current Time: Tue Jul 15 11:49:21 EDT 2025

Powered by FUDForum. Page generated in 0.07294 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top