Closed rolftheunissen closed 11 years ago
You can set the option 'overrideAntlrPlugin' to 'false' to keep the (changed) execution environment. Does that help?
Indeed this helps, first generate the antlr project, then change the java version, and keep the changed plugin to get java 1.5 compliance. However, if u want to be java 1.5 compliant, I expect that the plugin as provided on the update site should be java 1.5 compliant.
Since Eclipse is on Java 6 for a while now, we do the same and user Java 6 a minimum execution environment. For anyone else, the workaround should be feasible.
Java 6 is indeed recommended for Eclipse, but it is not required. See the link below for the versions of java that are required by each plugin:
http://www.eclipse.org/eclipse/development/readme_eclipse_4.3.html#Appendix1
The plugin org.emftext.commons.antlr3_4_0 that is released on the updatesite (update_trunk) requires the execution environment JavaSE-1.6 in the manifest file. This breaks java 1.5 compliance.
When the required execution environment is chanted to JavaSE-1.5 the plugin is java 1.5 compliant (without further code changes)