Bug 317847 - Ant terminates immediately and produces no output
Summary: Ant terminates immediately and produces no output
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 3.6   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-24 11:38 EDT by Jason Morawski CLA
Modified: 2019-09-06 16:05 EDT (History)
3 users (show)

See Also:


Attachments
Simple Ant build script (167 bytes, text/xml)
2010-06-24 12:54 EDT, Jason Morawski CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Morawski CLA 2010-06-24 11:38:25 EDT
Build Identifier: 20100617-1415

When I try to run Ant on my build.xml, the Console window shows that the Ant build terminated and the window is blank. This happens regardless of what target I choose in the launch config.

Reproducible: Always

Steps to Reproduce:
1. Right-click build.xml -> Run As -> Ant Build
2. Console window heading displays: <terminated> build.xml [Ant Build] /usr/lib/jvm/java-6-openjdk/bin/java
3. Console window has no output
Comment 1 Darin Wright CLA 2010-06-24 12:24:45 EDT
Can you attach a sample script?
Comment 2 Jason Morawski CLA 2010-06-24 12:54:50 EDT
Created attachment 172640 [details]
Simple Ant build script

I experience the problem with even the simplest Ant build script
Comment 3 Jason Morawski CLA 2010-06-24 13:24:33 EDT
This problem does not affect win32 platform
Comment 4 Jason Morawski CLA 2010-06-24 13:43:30 EDT
I was able to workaround the issue by changing ANT_HOME to /usr/share/ant
Comment 5 Darin Wright CLA 2010-06-24 14:31:53 EDT
This works for me on Win XP and UBuntu. What linux are you using? If you restore default settings for Ant Runtime preferences do things work?
Comment 6 Jason Morawski CLA 2010-06-25 10:36:59 EDT
(In reply to comment #5)
> This works for me on Win XP and UBuntu. What linux are you using? If you
> restore default settings for Ant Runtime preferences do things work?

I'm running Debian squeeze amd64.

The only way I could get it to work was by pointing Ant Home to /usr/share/ant which is where Debian keeps all the files used for Ant.
Comment 7 Michael Rennie CLA 2010-08-25 11:22:15 EDT
(In reply to comment #6)

> 
> The only way I could get it to work was by pointing Ant Home to /usr/share/ant
> which is where Debian keeps all the files used for Ant.

I managed to reproduce the same behavior (on Ubuntu 10.04) but not sure it is the same cause. In my case I was mucking around and had removed the antlibsupport.jar file, after that no Ant task would ever output anything, even using the attached example nothing would appear in the console. I would get an exception in the error log about the missing jar though.

Jason, do you recall seeing any exceptions in your error log about this jar being missing?
Comment 8 Eclipse Webmaster CLA 2019-09-06 16:05:53 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.