diff options
| author | 2020-06-02 13:00:02 +0100 | |
|---|---|---|
| committer | 2020-06-02 14:40:28 +0100 | |
| commit | 3dbf9fd892fe7a60e4688a0bba54bfe4959b5ea2 (patch) | |
| tree | a7a3d7a713b2e7e52e93319bd81e2eab41d10b21 /java | |
| parent | 91206d9ed1a1e3cb81d1ace021580c4be8362f1f (diff) | |
Copy removed.txt file to the snapshot correctly
Previously, the code copied the current.txt file to both the
current_api and removed_api properties. This change copies the
removed.txt file to the removed_api property instead.
Bug: 157980685
Test: m nothing
Change-Id: Iad34e91051da43222d22c240c16f50887c43d73e
Diffstat (limited to 'java')
| -rw-r--r-- | java/sdk_library.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/sdk_library.go b/java/sdk_library.go index c4d257f20..67b0bd603 100644 --- a/java/sdk_library.go +++ b/java/sdk_library.go @@ -2083,7 +2083,7 @@ func (s *sdkLibrarySdkMemberProperties) AddToPropertySet(ctx android.SdkMemberCo if properties.RemovedApiFile != nil { removedApiSnapshotPath := filepath.Join(scopeDir, ctx.Name()+"-removed.txt") - ctx.SnapshotBuilder().CopyToSnapshot(properties.CurrentApiFile, removedApiSnapshotPath) + ctx.SnapshotBuilder().CopyToSnapshot(properties.RemovedApiFile, removedApiSnapshotPath) scopeSet.AddProperty("removed_api", removedApiSnapshotPath) } |