commit | ddb5ed7e1f4ad3c47e951a17fe24f98be0c949c7 | [log] [tgz] |
---|---|---|
author | Jooyung Han <jooyung@google.com> | Mon Mar 08 20:42:32 2021 +0900 |
committer | Jooyung Han <jooyung@google.com> | Fri Mar 12 14:37:42 2021 +0900 |
tree | aec62ea9062bd017312efc08a1c215139aa7eeaf | |
parent | 51868f1577e90157fa961929071b0cdf6f195b66 [diff] |
Add ShellEscapeIncludingSpaces(string) ShellEscape(string) doesn't escape a string with spaces like "arg1 arg2". However, when we want to escape a string to use it as an argument, then strings with spaces should be escaped. For example, "command " + ShellEscapeIncludingSpaces("a b") becomes "command 'a b'" so that "command" will get "a b" as a single argument. Bug: 182092664 Test: Added tests to escape_test.go Change-Id: I8f88c18bc4f9f7aacfe9e701b8f0876dd8b9a8c3
Blueprint is a meta-build system that reads in Blueprints files that describe modules that need to be built, and produces a Ninja manifest describing the commands that need to be run and their dependencies. Where most build systems use built-in rules or a domain-specific language to describe the logic for converting module descriptions to build rules, Blueprint delegates this to per-project build logic written in Go. For large, heterogenous projects this allows the inherent complexity of the build logic to be maintained in a high-level language, while still allowing simple changes to individual modules by modifying easy to understand Blueprints files.