Thank you and Diane, I was looking at the wrong the task and meant java not javac. As I wished to run with some asserts enabled and some disabled. Can you tell me where I can get the patch from.
Regards Scott -----Original Message----- From: Steve Loughran [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 8:44 PM To: Ant Users List Subject: Re: JDK 1.4 ----- Original Message ----- From: "Scott Coleman" <[EMAIL PROTECTED]> To: "'Ant Users List'" <[EMAIL PROTECTED]> Sent: Wednesday, December 19, 2001 12:32 AM Subject: RE: JDK 1.4 > Hi, > > I have seen that the source option is supported, but I have not seen any > support for assert's. Therefore I just wished to confirm that asserts are > not supported and I would add the code for them. > > Regards, > Scott As Diane says, all you need to do is say the source is a 1.4 version of the source and the OS knows that assert is a statement, not a method. The ant source has had all references to junit.framework.Assert.assert() replaced with the assertTrue() method, so should even rebuild with the flag set. What is not in ant is any support for explicitly turning on assertions in <java>, or <junit>. We have had a patch for this supplied, but it has not gone in yet a there is still some debate about how best to do it. I would hope/expect that this support would go in the next version of ant to ship, whenever that is. -steve -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
