Hi, Peter -----Original Message----- From: Peter Reilly [mailto:[EMAIL PROTECTED] Sent: Friday, March 30, 2007 10:57 AM To: Ant Users List Subject: Re: ant / <javac> with jdk 5
/* > Is it possible to use Ant 1.6.5 with java 5 and > use <javac target="1.4"> ? Yes, however it is better to specify source as well. I normally specify debug as wee, otherwise all line number infromation is stripped. <javac source="1.4" target="1.4" debug="yes"> </javac> */ thanks for the pointer with using source, btw it's also mentioned in the manual but i had never to the classes are getting bigger if i use debug="yes" ? /* > Does it work as expected, when running those classes with jre1.4 ? Yes, unless you use methods that only exist in java 5. */ i just saw in the manual of <javac> that there's also a compiler attribute where i can choose 1.5. Does that mean i can stay with my workflow running on jdk 1.4 and all i need is the javac.exe from 1.5 in sight for ant if i need to compile for 1.5 ? How do i link to jdk5/bin/javac.exe, just put it on path ? Regards, Gilbert --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]