Thanks a lot

That's what I was looking for!!
Works like a charm

Beat


On 09/12/2011 02:30 AM, Urena, Jose M (Jose) wrote:
Xlint is only valid for newer compilers
if you are concerned that code might be compiled with different JDK versions or 
from different vendors
then compilerarg should have the compiler attribute that will signal when javac 
should look at the value/line

    <compilerarg line="-Xlint:${JAVA_LINT} " compiler="modern"/>


-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Friday, September 09, 2011 8:21 PM
To: Ant Users List
Subject: Re: How can I pass -Xlint to javac ?

Hello

  Try using this<compilerarg value="-Xlint"/>  ------Original Message------
From: Beat Meier
To: [email protected]
ReplyTo: Ant Users List
Subject: How can I  pass  -Xlint to javac ?
Sent: Sep 9, 2011 7:48 PM

Hello

How can I give arguments to the sun java compiler?
I want to use -Xlint with the javac but see no option of javac ant task?

Thanks

Beat

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional 
commands, e-mail: [email protected]


Sent from my BlackBerry

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional 
commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to