Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(338)

Issue 10790014: Add Java support to checkdeps.py (Closed)

Created:
8 years, 5 months ago by Iain Merrick
Modified:
8 years, 5 months ago
Reviewers:
M-A Ruel, mattm
CC:
chromium-reviews, pam+watch_chromium.org, Jói
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add Java support to checkdeps.py I've moved the C++-specific parts of checkdeps.py into objcpp_checker.py, and added a corresponding java_checker.py module for Java code. The Java module does an extra pass over the files (see Pydoc for details) but this has almost no impact on the overall running time. The Java checker is intended to be compatible with the existing DEPS format despite Java's different import mechanism. In the Android repo, there are a few extra DEPS files needed for the Java code. That code has not yet been upstreamed back to Chromium, so those DEPS aren't needed yet -- they can be added as and when they're needed. BUG=137081 TEST=checkdeps.py Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148094

Patch Set 1 #

Total comments: 41

Patch Set 2 : Ditched checker.py #

Total comments: 8

Patch Set 3 : More cleanup #

Total comments: 2

Patch Set 4 : Fixed indentation #

Patch Set 5 : Tweaks for pylint #

Patch Set 6 : Fix path errors when base_directory isn't cwd #

Patch Set 7 : Fix path errors due to weird separators on Windows #

Patch Set 8 : Convert backslashes to slashes in Java include paths #

Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -131 lines) Patch
M tools/checkdeps/checkdeps.py View 1 2 3 4 10 chunks +25 lines, -131 lines 0 comments Download
A tools/checkdeps/cpp_checker.py View 1 2 1 chunk +101 lines, -0 lines 0 comments Download
A tools/checkdeps/java_checker.py View 1 2 3 4 5 6 7 1 chunk +106 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Iain Merrick
This is code that we're using in the Android port. I'm happy to make any ...
8 years, 5 months ago (2012-07-16 18:56:40 UTC) #1
jam
I'm not a qualified reviewer for this
8 years, 5 months ago (2012-07-16 19:26:35 UTC) #2
Iain Merrick
Sorry, I was going by recent names in the change log for this dir, but ...
8 years, 5 months ago (2012-07-17 10:06:33 UTC) #3
M-A Ruel
http://codereview.chromium.org/10790014/diff/1/tools/checkdeps/checkdeps.py File tools/checkdeps/checkdeps.py (right): http://codereview.chromium.org/10790014/diff/1/tools/checkdeps/checkdeps.py#newcode62 tools/checkdeps/checkdeps.py:62: import checker No need to import 'checker'. Furthermore doing ...
8 years, 5 months ago (2012-07-17 14:23:19 UTC) #4
Iain Merrick
Thanks for the detailed comments! http://codereview.chromium.org/10790014/diff/1/tools/checkdeps/checkdeps.py File tools/checkdeps/checkdeps.py (right): http://codereview.chromium.org/10790014/diff/1/tools/checkdeps/checkdeps.py#newcode62 tools/checkdeps/checkdeps.py:62: import checker On 2012/07/17 ...
8 years, 5 months ago (2012-07-17 15:55:08 UTC) #5
Iain Merrick
http://codereview.chromium.org/10790014/diff/1/tools/checkdeps/java_checker.py File tools/checkdeps/java_checker.py (right): http://codereview.chromium.org/10790014/diff/1/tools/checkdeps/java_checker.py#newcode65 tools/checkdeps/java_checker.py:65: def _PrescanFile(self, filename): On 2012/07/17 14:23:20, Marc-Antoine Ruel wrote: ...
8 years, 5 months ago (2012-07-18 13:22:12 UTC) #6
M-A Ruel
Assuming utf-8 won't work. I wrote a small script because I was wondering about the ...
8 years, 5 months ago (2012-07-18 14:19:37 UTC) #7
Iain Merrick
http://codereview.chromium.org/10790014/diff/6001/tools/checkdeps/cpp_checker.py File tools/checkdeps/cpp_checker.py (right): http://codereview.chromium.org/10790014/diff/6001/tools/checkdeps/cpp_checker.py#newcode77 tools/checkdeps/cpp_checker.py:77: for line_num in xrange(sys.maxint): On 2012/07/18 14:19:37, Marc-Antoine Ruel ...
8 years, 5 months ago (2012-07-19 12:44:34 UTC) #8
Iain Merrick
On 2012/07/18 14:19:37, Marc-Antoine Ruel wrote: > Assuming utf-8 won't work. Wow, ouch, good find. ...
8 years, 5 months ago (2012-07-19 12:49:50 UTC) #9
Iain Merrick
We had an IM discussion about this, and Marc-Antoine started writing a script to fix ...
8 years, 5 months ago (2012-07-20 12:29:02 UTC) #10
M-A Ruel
lgtm http://codereview.chromium.org/10790014/diff/7/tools/checkdeps/checkdeps.py File tools/checkdeps/checkdeps.py (right): http://codereview.chromium.org/10790014/diff/7/tools/checkdeps/checkdeps.py#newcode383 tools/checkdeps/checkdeps.py:383: checkers = dict((extension, checker) Weird alignment. Either all ...
8 years, 5 months ago (2012-07-20 12:53:27 UTC) #11
Iain Merrick
http://codereview.chromium.org/10790014/diff/7/tools/checkdeps/checkdeps.py File tools/checkdeps/checkdeps.py (right): http://codereview.chromium.org/10790014/diff/7/tools/checkdeps/checkdeps.py#newcode383 tools/checkdeps/checkdeps.py:383: checkers = dict((extension, checker) On 2012/07/20 12:53:27, Marc-Antoine Ruel ...
8 years, 5 months ago (2012-07-23 14:22:09 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/husky@chromium.org/10790014/7
8 years, 5 months ago (2012-07-23 14:22:26 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/husky@chromium.org/10790014/13003
8 years, 5 months ago (2012-07-23 14:31:32 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/husky@chromium.org/10790014/19005
8 years, 5 months ago (2012-07-23 15:05:47 UTC) #15
commit-bot: I haz the power
Try job failure for 10790014-19005 (retry) on mac_rel for step "browser_tests". It's a second try, ...
8 years, 5 months ago (2012-07-23 16:01:20 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/husky@chromium.org/10790014/19005
8 years, 5 months ago (2012-07-23 16:08:12 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/husky@chromium.org/10790014/12
8 years, 5 months ago (2012-07-23 16:56:16 UTC) #18
commit-bot: I haz the power
Try job failure for 10790014-12 (retry) on win_rel for step "check_deps". It's a second try, ...
8 years, 5 months ago (2012-07-23 19:14:14 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/husky@chromium.org/10790014/21002
8 years, 5 months ago (2012-07-24 10:57:07 UTC) #20
commit-bot: I haz the power
8 years, 5 months ago (2012-07-24 12:49:01 UTC) #21
Change committed as 148094

Powered by Google App Engine
This is Rietveld 408576698