aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2019-06-07 18:31:02 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-06-07 18:31:02 -0700
commit3ac5528f3d584505c6e3bd6d7365cc93c6534efb (patch)
tree6340b19b9ae22bd174fc97a22ca1004404803594
parent3bbe357166c52f08fabcf1fd2e9b7957dc7a88f5 (diff)
parente2faf9c0d8db8c6af1dbafd95447d1c8e8cef085 (diff)
downloadaidl-3ac5528f3d584505c6e3bd6d7365cc93c6534efb.tar.gz
AIDL API check ignores blank lines and comments
am: e2faf9c0d8 Change-Id: Icf377ba6bf9eef0ef1816ad18fa4d338ca4ee34b
-rw-r--r--build/aidl_interface.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/aidl_interface.go b/build/aidl_interface.go
index bcc205e3..ba022bf4 100644
--- a/build/aidl_interface.go
+++ b/build/aidl_interface.go
@@ -100,7 +100,7 @@ var (
}, "old", "new", "messageFile")
aidlDiffApiRule = pctx.StaticRule("aidlDiffApiRule", blueprint.RuleParams{
- Command: `(diff -r ${old} ${new} && touch ${out}) || ` +
+ Command: `(diff -r -B -I '//.*' ${old} ${new} && touch ${out}) || ` +
`(cat ${messageFile} && exit 1)`,
Description: "Check equality of ${new} and ${old}",
}, "old", "new", "messageFile")