DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page No output in console while running ant build file in Eclipse
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: May 2009
Default No output in console while running ant build file in Eclipse - 05-23-2009, 02:57 PM

I am facing the following problem:
"When I try to run an ant build file using Ant view in Eclipse, I do not get any output in the console. I can see only
a red square button in the console - it just hangs - on pressing the red button, the program terminates but nothing happens. However when I run the same ant build file from command line, everything works fine"

I am using the following softwares: [1]Eclipse Ganymeded version 3.4.1 (in-built ant plugin) [2] Java SE Development
Kit 6 update 13 [2]Windows XP (SP2)

I have tried to rectify the situation as follows:
1)I have uninstalled and reinstalled eclipse - no result
2)I have uninstalled and reinstalled XP - no result

What is more surprising is that I have another machine where the same set of software as mentioned above is installed and
the ant build file runs fine from within eclipse.

Please help - I am struggling with this problem for last 3 days
Reply With Quote
  (#2 (permalink)) Old
Member
 
Posts: 25
Thanks: 0
Thanked 2 Times in 2 Posts
Join Date: Feb 2008
Default 05-24-2009, 08:17 AM

Try right-clicking on the desired Ant target and selecting "Run As", then "Ant Build ...". From the resulting Tabbed pane, select the "Common" tab and ensure that the "Allocate Console" check box is checked.
Reply With Quote
  (#3 (permalink)) Old
Member
 
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: May 2009
Default 05-25-2009, 02:38 AM

I have already tried to run the build file as : Run As -> Ant Build
...but the problem is same as I described above.

However I do not see anything called "Common" tab or "Allocate Console" check box.
Reply With Quote
  (#4 (permalink)) Old
Member
 
Posts: 25
Thanks: 0
Thanked 2 Times in 2 Posts
Join Date: Feb 2008
Default 05-25-2009, 11:37 AM

When I right click on the Ant target and select "Run As", I see two options:

1. Ant Build (Alt-Shift-X, Q)
2. Ant Build ...

Selecting the second option opens a "Edit configuration and launch" window which includes the "Common" tab which I referenced. Are you selecting the Ant build option with the trailing "..."?
Reply With Quote
  (#5 (permalink)) Old
Member
 
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: May 2009
Default 05-26-2009, 08:32 AM

yeah I tired exactly as you said (option with the trailing "..."? ), but the problem still remains same.....I am now going out of my mind witht his problem.
Reply With Quote
  (#6 (permalink)) Old
Member
 
Posts: 25
Thanks: 0
Thanked 2 Times in 2 Posts
Join Date: Feb 2008
Default 05-26-2009, 09:53 PM

I'm trying to attach images of the menu sequences I see.

Selecting "Ant Build ..."



Resulting tabbed panes:



If you can't get this running like you want, you might want to create a new workspace and import your project into the new workspace.
Reply With Quote
  (#7 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Oct 2009
Default 10-21-2009, 12:22 PM

I had the same problem so I went back to Eclipse Europa to compare and it turned out that in Eclipse Ganymede the jars for "Ant Home" in the "Classpath" tab were pointing to another plugin lib, so through the "Add External Jars" I added the jars in "...\Eclipse\plugins\org.apache.ant_1.7.0.v2008030 61910\lib" and it worked... or you can just change the "Ant Home".
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[EMF-JET] Output 'C' file reji Eclipse 0 01-09-2009 01:08 AM
How to set up my eclipse project to build a jar file from two jar files powah Java 0 11-13-2008 03:55 PM
No Console in Eclipse eben Eclipse 0 09-16-2008 07:37 AM
Eclipse console differs from MS Windows console? neuralfire Eclipse 0 07-27-2008 08:23 PM
Read from Eclipse Output Console gamby Eclipse 6 02-14-2008 09:50 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com