ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <ddevie...@gmail.com>
Subject Re: Enabling assert
Date Wed, 20 Sep 2006 17:53:16 GMT
> How do I enable the assert in my build script? I am getting the error message "assert
is a
> keyword, and may not be used as an identifier" when I compile the file with assert statement.
TIA.

This is a Javac error message, not an Ant one. The sources you compile
either use JDK 1.4+ asserts, and you need to add source="1.4" (or 1.5,
depends) to <javac>, or it doesn't, and you need to remove the source
attribute, or use a value below 1.4. --DD

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message