I'm trying to compile my projects with ANT build script. When I change the Eclipse workspace default JRE, let say to JDK1.6.0_27 32bit the ANT still using JRE 1.7.0 64bit (which is system default)
There is an option to set ANT build file to use different java version by setting "External Tools Configuration", selecting ANT build file and selecting relevant java in "JRE" tab, but that is strange, because there is option in the same place to use "Run in the same JRE as the workspace", which doesn't works for me (running Eclipse Indigo 3.7).
That can be not problem when you have an one project with one ANT script, but I have an 7 projects with 7 build files, and I need to make 2 different releases: one with Java 1.6 32bit, and one Java 1.7 64bit. Selection of required settings manually each time (I'm building releases almost every day) became the real 'pain in the ass'.