diff options
author | 2020-11-13 11:48:42 -0800 | |
---|---|---|
committer | 2020-11-14 16:26:00 -0800 | |
commit | cf371cc1f73f2c4ac0dc824d16160648b9b1d952 (patch) | |
tree | cdcbddb6393026d7e48f01795c361d407a191ec3 /apex/builder.go | |
parent | 1d26d3033a3bb1bf6c62e36818fc901949268bf1 (diff) |
Replace android.WriteFile rule with android.WriteFileRule
The android.WriteFile rule takes careful escaping to produce the
right contents. Wrap it in an android.WriteFileRule that handles
the escaping.
Test: compare all android.WriteFile outputs
Change-Id: If71a5843af47a37ca61714e1a1ebb32d08536c31
Diffstat (limited to 'apex/builder.go')
-rw-r--r-- | apex/builder.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/apex/builder.go b/apex/builder.go index ad673d656..acfb8c577 100644 --- a/apex/builder.go +++ b/apex/builder.go @@ -373,14 +373,7 @@ func (a *apexBundle) buildBundleConfig(ctx android.ModuleContext) android.Output panic(fmt.Errorf("error while marshalling to %q: %#v", output, err)) } - ctx.Build(pctx, android.BuildParams{ - Rule: android.WriteFile, - Output: output, - Description: "Bundle Config " + output.String(), - Args: map[string]string{ - "content": string(j), - }, - }) + android.WriteFileRule(ctx, output, string(j)) return output.OutputPath } |