diff options
author | 2020-11-26 00:26:42 +0000 | |
---|---|---|
committer | 2020-11-30 17:20:09 +0000 | |
commit | d8aed4b275ddc68b7ca84dda3fe7df1765ffe23b (patch) | |
tree | 77c3206b8a56204dcefb7ab2f59a463b0cec5abd /java/droiddoc.go | |
parent | fdea25781f72a2f15fdad0bacc633a6c8f255fec (diff) |
droidstubs: Remove unnecessary setting of DistFiles
Instead of setting DistFiles to use the api stub (if present) as the
default dist file this simply makes OutputFiles(tag) return the api
stub file for the DefaultDistTag.
Test: m nothing
m dist sdk - before and after this change, compare result to
make sure that there are no significant differences.
Bug: 174226317
Change-Id: I39d615c5bf8d20d59db7eeb98d942210ec0aa8ba
Diffstat (limited to 'java/droiddoc.go')
-rw-r--r-- | java/droiddoc.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/java/droiddoc.go b/java/droiddoc.go index cf7f4fb5d..da8489ac1 100644 --- a/java/droiddoc.go +++ b/java/droiddoc.go @@ -1050,7 +1050,8 @@ func (d *Droidstubs) OutputFiles(tag string) (android.Paths, error) { return android.Paths{d.stubsSrcJar}, nil case ".docs.zip": return android.Paths{d.docZip}, nil - case ".api.txt": + case ".api.txt", android.DefaultDistTag: + // This is the default dist path for dist properties that have no tag property. return android.Paths{d.apiFilePath}, nil case ".removed-api.txt": return android.Paths{d.removedApiFilePath}, nil |