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
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user