Bug 318157 - Eclipse freezes when calling ANT target
Summary: Eclipse freezes when calling ANT target
Status: CLOSED DUPLICATE of bug 101224
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-28 06:17 EDT by MH CLA
Modified: 2010-08-25 11:28 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MH CLA 2010-06-28 06:17:16 EDT
Build Identifier: 20100617-1415

Just updated Eclipse to new Helios version. But none of my ANT targets called from the ANT view work anymore: all freeze with no entry in the Eclipse .log file.

Reproducible: Always

Steps to Reproduce:
1. Update to Eclipse Helios
2. Adjust ANT libs in the preferences
3. Start ANT target in the ANT view
Comment 1 Remy Suen CLA 2010-06-28 06:43:19 EDT
(In reply to comment #0)
> But none of my ANT targets called
> from the ANT view work anymore: all freeze with no entry in the Eclipse .log
> file.

When you say freeze, do you mean that Eclipse hangs and you are forced to kill the process?
Comment 2 Olivier Thomann CLA 2010-06-28 07:19:28 EDT
Moving to Platform/Ant
Comment 3 Michael Rennie CLA 2010-06-28 10:12:21 EDT
(In reply to comment #0)

> Steps to Reproduce:
> 1. Update to Eclipse Helios
> 2. Adjust ANT libs in the preferences
> 3. Start ANT target in the ANT view

When you say "Adjust ANT libs..." what are you referring to? Pointing to a different version of Ant?
Comment 4 MH CLA 2010-06-28 15:48:55 EDT
This is the same problem a have so often when I upgrade Eclipse: ANT never worked after an upgrade. I always have to set the ANT paths to the eclipse (mew) ant plugin directory. I removed all existing ANT JARs from Eclipses ANT preferences and added them again from the Helios installation. Now it works again. 

You really should throw some exceptions when running an ant script and classes (i.e. JARs) are missing. When I e.g. remove the "ant.jar" from the ANT preferences, the same result: Eclipse just freezes when starting and ant script and doesn't show any entry in the .log file.
Comment 5 Michael Rennie CLA 2010-08-25 10:39:54 EDT
(In reply to comment #4)
> This is the same problem a have so often when I upgrade Eclipse: ANT never
> worked after an upgrade. I always have to set the ANT paths to the eclipse
> (mew) ant plugin directory. I removed all existing ANT JARs from Eclipses ANT
> preferences and added them again from the Helios installation. Now it works
> again. 

Does the "restore defaults" button not suffice for this task (assuming we are both talking about the Ant > Runtime preference page)? Why do you have to manually remove + add them back? Are you leaving some of the standard Ant libraries out?

> You really should throw some exceptions when running an ant script and classes
> (i.e. JARs) are missing. When I e.g. remove the "ant.jar" from the ANT
> preferences, the same result: Eclipse just freezes when starting and ant script
> and doesn't show any entry in the .log file.

I tried removing ant.jar and a bunch of other standard Ant libraries and did not experience a 'freeze'. Can you provide some more exact steps to reproduce?
Comment 6 Michael Rennie CLA 2010-08-25 11:28:30 EDT
this bug is a dupe of 101224

*** This bug has been marked as a duplicate of bug 101224 ***