Bug 31258 - add build.compiler.executable default property
Summary: add build.compiler.executable default property
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.6.2
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---
Assignee: Ant Notifications List
Depends on:
Reported: 2004-09-16 05:14 UTC by John Kristian
Modified: 2008-02-22 12:18 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description John Kristian 2004-09-16 05:14:44 UTC
Please enhance the implementation of <javac> to run the compiler program named 
by the Ant property ${build.compiler.executable} if <javac> has no executable 

This would enable adjacent definitions of the compiler and its version.  For 
example (in a .properties file):



This would be better than setting the PATH environment variable so that `jikes` 
resolves to the desired version, in two ways: it eases maintenance, by placing 
related parameters together; and it's less apt to have undesired side-effects 
such as causing child scripts or <ant> invocations to run a different compiler.

This could be implemented in Javac.getExecutable, but perhaps that's a bad idea.