Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AntSecurityException when opening ant-file in eclipse

Tags:

java

eclipse

ant

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

like image 367
Jan Avatar asked Jun 21 '10 09:06

Jan


People also ask

What does Ant build mean in Eclipse?

Ant is a Java-based build tool created as part of the Apache open-source project. You can think of it as a Java version of make. Ant scripts have a structure and are written in XML. Similar to make, Ant targets can depend on other targets. For example, Ant is used in the context of plug-in development in the build.

Does Eclipse use Ant to build?

Although the build system in Eclipse does not based on Ant, Eclipse offers a function that lets us creating Ant build script for the project manually.


1 Answers

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'

like image 179
Ross Avatar answered Oct 14 '22 12:10

Ross