Scott Simpson <[EMAIL PROTECTED]> writes: > Antoine Levy-Lambert wrote: >> Hello Scott, Dick, >> as usual a look at the manual can help. [1] >> The answer is to use the fork attribute of the javac task, and specify the >> executable. >> <javac fork="true" executable="c:/jdk1.3/bin/javac.exe"/> would do for >> instance. > > You aren't understanding my problem. Of course I know how to call using > different JDKs. The problem is finding these JDKs on the path in the first > place. I want to find the JDKs on the path and pick the latest ones for 1.3, > 1.4, etc.
I think you have to: - do your own task to parse the PATH environment variable - and test if a 'javac' executable file is available in each directory, - query for its version and select the right one according to your criteria An interesting menu, isn't it ? Regards, -- Yves Martin --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]