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
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.
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 "..."?
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.
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".