tags:

views:

19

answers:

1

Hi,

one in a while eclipse refuses to open antfiles. The error log tells me that an "AntSecurityException" is the cause. The javadoc for org.eclipse.ant.core.AntSecurityException tells me that the exception is thrown when an ant task wants to stop the jvm. But just opening an ant build should not start any targets or tasks. The only solution is to restart eclipse.

Does someone know how to stop this rather irritating behavior of eclipse.

Regards, Jan

A: 

I have never come across this exception myself. Just out of interest what version of Eclipse are you using?

I did find a solution on the web regarding this though and it is in the folding option of the Ant editor. Try disabling the folding option for Ant editor by going: Windows -> Preferences -> Ant -> Editor -> Folding tab. Uncheck 'Enable folding'

Ross
Im using version 3.5. I'll try the tip with folding - never needed it anyway ;-) Thanks
Jan