Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 46743

Summary: Eclipse does not respect JVM settings when starting Ant
Product: [Eclipse Project] Platform Reporter: Eugene Kuleshov <ekuleshov>
Component: AntAssignee: Platform-Ant-Inbox <platform-ant-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: critical    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Eugene Kuleshov CLA 2003-11-16 01:23:57 EST
Since Eclipse version 3.0 M4, JDK 1.4 became a requirement to run Eclipse.
Unfortunately there are number of projects that require 1.3 to compile. So, it
is possible to configure JRE to run Java apps and unit tests, but not to run
Ant. This is very critical issue for some projects, because Ant build just does
not work for JRE 1.4.
Comment 1 Darin Swanson CLA 2003-11-16 11:40:04 EST
The existing possibilities:

you can configure your javac task to compile to a 1.3 compatible target (see 
the documentation for the Ant javac task about the "source" and "target" 
attributes)

you can specify an alternate JRE for an Ant build using the JRE tab for the 
Ant launch configuration (just like Java apps and unit tests).
Comment 2 Eugene Kuleshov CLA 2003-11-16 12:29:17 EST
Thank you for the hints. 

The only suggestion I have is to make such JVM settings not project specific,
but global. And then allow to overwite it on a project level. Usually entire
workspace has to be build on a similar manner.
Comment 3 Darin Swanson CLA 2003-11-16 17:20:14 EST
Bug 38263 exists for setting the global vm setting.

*** This bug has been marked as a duplicate of 38263 ***