I have included the -Xlint option as follows in build.xml of ANT in Eclipse but I could not get the warnings that Xlint should give. When I run -Xlint from command line it works fine giving all the warnings for the code. Any help would be appreciated.

<javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}">
<src path="src"/>
<classpath refid="ANT.classpath"/>
<compilerarg value="-Xlint:all" />