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
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.
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.
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'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With