Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse 3.4 ant task hangs

When I launch an ant script from Eclipse 3.4.x it prints the output to console until certain stage. After that it often hangs (wait forever). Last lines that I see at the screen (console) - partial output from my obfuscator.

Under Eclipse 3.3.2 everything works fine (the same project, workspace, settings, JVM etc.).

Does anybody have the same issue? Any thoughts how to fix it?

like image 892
FoxyBOA Avatar asked Apr 06 '26 16:04

FoxyBOA


2 Answers

I can see this phenomena with Eclipse 3.6 and Ant 1.7.1 as well. In my case I have to set the JRE in External Tool Configurations (Menu Run->External Tools) to "Run in the same JRE as the workspace", then it works fine.

like image 64
mkraemerx Avatar answered Apr 12 '26 22:04

mkraemerx


i was using Eclipse 3.4.2 and ant task was hanging, ant output was getting onto the console only to a certain level and after that nothing was working.

I looked on the last line on the console and found some issue related to UTF-8.

This is the message (warning: unmappable character for encoding UTF8).

Go to External Tool. select the ant task, click on "Common Tab", change the encoding from default(UTF-8) to ISO-8859-1.

like image 41
Prabhat Avatar answered Apr 12 '26 23:04

Prabhat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!