Manually escape BuildNumberFromFile
Change ctx.Config().BuildNumberFromFile() to be unescaped, and then escape it manually where necessary. This will allow passing ctx.Config().BuildNumberFromFile() to RuleBuilder, which will handle the necessary escaping. Test: no change to out/soong/build.ninja Change-Id: I5329ab2ba70ccea49958864488aa81794a7e4b56
This commit is contained in:
parent
2647ced06e
commit
5822b552ef
2 changed files with 2 additions and 2 deletions
|
@ -483,7 +483,7 @@ func (linker *baseLinker) injectVersionSymbol(ctx ModuleContext, in android.Path
|
|||
Input: in,
|
||||
Output: out,
|
||||
Args: map[string]string{
|
||||
"buildNumberFromFile": ctx.Config().BuildNumberFromFile(),
|
||||
"buildNumberFromFile": proptools.NinjaEscape(ctx.Config().BuildNumberFromFile()),
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
|
@ -921,7 +921,7 @@ func (d *Droiddoc) collectDoclavaDocsFlags(ctx android.ModuleContext, implicits
|
|||
// 1.9 language features.
|
||||
args := " -source 1.8 -J-Xmx1600m -J-XX:-OmitStackTraceInFastThrow -XDignore.symbol.file " +
|
||||
"-doclet com.google.doclava.Doclava -docletpath " + jsilver.String() + ":" + doclava.String() + " " +
|
||||
"-hdf page.build " + ctx.Config().BuildId() + "-" + ctx.Config().BuildNumberFromFile() + " " +
|
||||
"-hdf page.build " + ctx.Config().BuildId() + "-" + proptools.NinjaEscape(ctx.Config().BuildNumberFromFile()) + " " +
|
||||
`-hdf page.now "$$(` + date + ` @$$(cat ` + ctx.Config().Getenv("BUILD_DATETIME_FILE") + `) "+%d %b %Y %k:%M")" `
|
||||
|
||||
if String(d.properties.Custom_template) == "" {
|
||||
|
|
Loading…
Reference in a new issue