Custom arguments to javac

50 views
Skip to first unread message

Ievgenii Nazaruk

unread,
Nov 3, 2011, 8:00:41 AM11/3/11
to adt-dev
Currently there is no way to pass custom arguments to java compiler. I
need to enable all warnings for my builds, and to do this I need to
add:

<javac ...>
...
<compilerarg value="-Xlint" />
</javac>


It would be nice to add custom javac arguments property. In this case
you should probably use "line" instead of "value":

<compilerarg line="${javac.compilerargs}" />

to allow multiple arguments to be passed via javac.compilerargs
property.

Xavier Ducrohet

unread,
Nov 3, 2011, 3:41:21 PM11/3/11
to adt...@googlegroups.com
Great idea.

http://code.google.com/p/android/issues/detail?id=21525

--
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. Thanks!

Reply all
Reply to author
Forward
0 new messages