summaryrefslogtreecommitdiffstats
path: root/build/android/gyp/javac.py
diff options
context:
space:
mode:
authorcjhopman@chromium.org <cjhopman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-05 03:42:28 +0000
committercjhopman@chromium.org <cjhopman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-05 03:42:28 +0000
commitb92ed147a90a664c5eda2fc73d433865e04575b2 (patch)
tree07ebb134ec5d482dcf580e64db4f3b1ba07d336f /build/android/gyp/javac.py
parentff3d89d53261e2c8a077b36b57f721c32af3754d (diff)
downloadchromium_src-b92ed147a90a664c5eda2fc73d433865e04575b2.zip
chromium_src-b92ed147a90a664c5eda2fc73d433865e04575b2.tar.gz
chromium_src-b92ed147a90a664c5eda2fc73d433865e04575b2.tar.bz2
Improve javac action output
For non-chromium code, suppress all output when successful (i.e. warnings). For chromium code, add -Xlint:deprecation to get detailed deprecation warnings. BUG=164395 Review URL: https://chromiumcodereview.appspot.com/13489006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192479 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/android/gyp/javac.py')
-rwxr-xr-xbuild/android/gyp/javac.py15
1 files changed, 6 insertions, 9 deletions
diff --git a/build/android/gyp/javac.py b/build/android/gyp/javac.py
index b22d05b..8a62e5f 100755
--- a/build/android/gyp/javac.py
+++ b/build/android/gyp/javac.py
@@ -47,16 +47,13 @@ def DoJavac(options):
'-source', '1.5',
'-target', '1.5',
'-classpath', ':'.join(classpath),
- '-d', output_dir]
+ '-d', output_dir,
+ '-Xlint:unchecked',
+ '-Xlint:deprecation',
+ ]
- # Only output Java warnings for chromium code
- if options.chromium_code:
- cmd += ['-Xlint:unchecked']
- else:
- cmd += [# Suppress "Sun proprietary API" warnings. See: goo.gl/OYxUM
- '-XDignore.symbol.file']
-
- build_utils.CheckCallDie(cmd + java_files)
+ suppress_output = not options.chromium_code
+ build_utils.CheckCallDie(cmd + java_files, suppress_output=suppress_output)
def main(argv):
parser = optparse.OptionParser()